summaryrefslogtreecommitdiffstats
path: root/src/formatimporter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit33f08e93132a53bf14f41f5f1e567eeea832b336 (patch)
treef71204bc1c7d41a0545805a1276c5af43e1c3094 /src/formatimporter.cpp
parent14284db4dfa93999d6227344141e8663d9fcf7f9 (diff)
downloadbasket-33f08e93132a53bf14f41f5f1e567eeea832b336.tar.gz
basket-33f08e93132a53bf14f41f5f1e567eeea832b336.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/formatimporter.cpp')
-rw-r--r--src/formatimporter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/formatimporter.cpp b/src/formatimporter.cpp
index 672695c..f28df81 100644
--- a/src/formatimporter.cpp
+++ b/src/formatimporter.cpp
@@ -114,8 +114,8 @@ void FormatImporter::importBaskets()
if (list.count() > 2) // Pass "." and ".."
for (TQStringList::Iterator it = list.begin(); it != list.end(); ++it) // For each folder
if (*it != "." && *it != ".." && dir.exists(Global::savesFolder() + *it + "/.basket")) // If it can be a basket folder
- if ( baskets.tqfind((*it) + "/") == baskets.end() &&
- baskets.tqfind(*it) == baskets.end() ) // And if it is not already in the imported baskets list
+ if ( baskets.find((*it) + "/") == baskets.end() &&
+ baskets.find(*it) == baskets.end() ) // And if it is not already in the imported baskets list
baskets.append(*it);
std::cout << "Import Baskets: Found " << baskets.count() << " baskets to import." << std::endl;
@@ -137,7 +137,7 @@ void FormatImporter::importBaskets()
TQString newFolderName = folderName;
if (newFolderName.endsWith("/"))
newFolderName = newFolderName.left(newFolderName.length() - 1);
- newFolderName = newFolderName.mid(newFolderName.tqfindRev('/') + 1);
+ newFolderName = newFolderName.mid(newFolderName.findRev('/') + 1);
newFolderName = Tools::fileNameForNewFile(newFolderName, Global::basketsFolder());
FormatImporter f;
f.copyFolder(folderName, Global::basketsFolder() + newFolderName);