From 72aaee9802d447ee21340b011856b9b355a58f1a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- src/kvilib/file/kvi_fileutils.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kvilib/file/kvi_fileutils.cpp') 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('/'))) -- cgit v1.2.1