summaryrefslogtreecommitdiffstats
path: root/kmahjongg
diff options
context:
space:
mode:
Diffstat (limited to 'kmahjongg')
-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