From 24c5cdc2737fe0044b11a12359606973eb93fc0b 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/kdegames@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmahjongg/Preview.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kmahjongg') 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 -- cgit v1.2.1