summaryrefslogtreecommitdiffstats
path: root/kmahjongg/Preview.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
commit24c5cdc2737fe0044b11a12359606973eb93fc0b (patch)
treea670701ebff60c73e9f32aab588e9b3d395d74f9 /kmahjongg/Preview.cpp
parentf6000cffbc89072156cad7866d179fbd622df317 (diff)
downloadtdegames-24c5cdc2737fe0044b11a12359606973eb93fc0b.tar.gz
tdegames-24c5cdc2737fe0044b11a12359606973eb93fc0b.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmahjongg/Preview.cpp')
-rw-r--r--kmahjongg/Preview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmahjongg/Preview.cpp b/kmahjongg/Preview.cpp
index b99b3fd3..0904c750 100644
--- a/kmahjongg/Preview.cpp
+++ b/kmahjongg/Preview.cpp
@@ -216,29 +216,29 @@ void Preview::drawPreview()
in.close();
tile = tilesetRaw;
- tile.tqreplace(":", "/kmahjongg/pics/");
+ tile.replace(":", "/kmahjongg/pics/");
if (!TQFile::exists(tile))
{
tile = tilesetRaw;
- tile = "pics/" + tile.right(tile.length() - tile.tqfind(":") - 1 );
+ tile = "pics/" + tile.right(tile.length() - tile.find(":") - 1 );
tile = locate("appdata", tile);
}
back = backRaw;
- back.tqreplace(":", "/kmahjongg/pics/");
+ back.replace(":", "/kmahjongg/pics/");
if (!TQFile::exists(back))
{
back = backRaw;
- back = "pics/" + back.right(back.length() - back.tqfind(":") - 1);
+ back = "pics/" + back.right(back.length() - back.find(":") - 1);
back = locate("appdata", back);
}
tqlayout = layoutRaw;
- tqlayout.tqreplace(":", "/kmahjongg/pics/");
+ tqlayout.replace(":", "/kmahjongg/pics/");
if (!TQFile::exists(tqlayout))
{
tqlayout = layoutRaw;
- tqlayout = "pics/" + tqlayout.right(tqlayout.length() - tqlayout.tqfind(":") - 1);
+ tqlayout = "pics/" + tqlayout.right(tqlayout.length() - tqlayout.find(":") - 1);
tqlayout = locate("appdata", tqlayout);
}
@@ -373,9 +373,9 @@ void Preview::saveTheme() {
// with a +
TQRegExp p(locate("data_dir", "/kmahjongg/pics/"));
- back.tqreplace(p,with);
- tile.tqreplace(p,with);
- tqlayout.tqreplace(p,with);
+ back.replace(p,with);
+ tile.replace(p,with);
+ tqlayout.replace(p,with);
// Get the name of the file to save