diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 72aaee9802d447ee21340b011856b9b355a58f1a (patch) | |
tree | f97a68e4f75e6c25c8492e03fdfe6983fb0aa199 /src/kvilib/file/kvi_fileutils.cpp | |
parent | 5d03948cd3558c613fae1fad109635f860babcbb (diff) | |
download | kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.tar.gz kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvilib/file/kvi_fileutils.cpp')
-rw-r--r-- | src/kvilib/file/kvi_fileutils.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kvilib/file/kvi_fileutils.cpp b/src/kvilib/file/kvi_fileutils.cpp index 1ad09d60..1668999d 100644 --- a/src/kvilib/file/kvi_fileutils.cpp +++ b/src/kvilib/file/kvi_fileutils.cpp @@ -108,7 +108,7 @@ namespace KviFileUtils #ifdef COMPILE_USE_QT4 int idx = dir.indexOf(':'); #else - int idx = dir.tqfind(':'); + int idx = dir.find(':'); #endif if(idx == 1) { @@ -212,20 +212,20 @@ namespace KviFileUtils void adjustFilePath(TQString &szPath) { #ifdef COMPILE_ON_WINDOWS - szPath.tqreplace('/',"\\"); + szPath.replace('/',"\\"); #ifdef COMPILE_USE_QT4 - szPath.tqreplace("\\\\","\\"); + szPath.replace("\\\\","\\"); #else - while(szPath.tqfind("\\\\") != -1)szPath.tqreplace("\\\\","\\"); + while(szPath.find("\\\\") != -1)szPath.replace("\\\\","\\"); #endif // FIXME: Use the default drive here ? if(szPath.startsWith("\\"))szPath.prepend("C:"); #else - szPath.tqreplace('\\',"/"); + szPath.replace('\\',"/"); #ifdef COMPILE_USE_QT4 - szPath.tqreplace("//","/"); + szPath.replace("//","/"); #else - while(KviTQString::tqfind(szPath,"//") != -1)szPath.tqreplace("//","/"); + while(KviTQString::find(szPath,"//") != -1)szPath.replace("//","/"); #endif // deal with windows paths if((szPath.length() > 2) && (szPath.at(0) != TQChar('/'))) |