summaryrefslogtreecommitdiffstats
path: root/kpat/pwidget.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 /kpat/pwidget.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 'kpat/pwidget.cpp')
-rw-r--r--kpat/pwidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kpat/pwidget.cpp b/kpat/pwidget.cpp
index e8353dee..4fc36295 100644
--- a/kpat/pwidget.cpp
+++ b/kpat/pwidget.cpp
@@ -114,7 +114,7 @@ pWidget::pWidget()
TQStringList list2;
for (TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it) {
TQString file = *it;
- int rindex = file.tqfindRev('.');
+ int rindex = file.findRev('.');
if (rindex != -1) {
TQString ext = file.mid(rindex + 1).lower();
if (ext == "jpeg" || ext == "png" || ext == "jpg") {
@@ -125,7 +125,7 @@ pWidget::pWidget()
}
wallpapers->setItems(list2);
- wallpapers->setCurrentItem(list2.tqfindIndex("No-Ones-Laughing-3"));
+ wallpapers->setCurrentItem(list2.findIndex("No-Ones-Laughing-3"));
changeWallpaper();
@@ -344,8 +344,8 @@ void pWidget::newGameType()
if ((*it)->gameindex == id) {
dill = (*it)->createGame(this);
TQString name = (*it)->name;
- name = name.tqreplace(TQRegExp("[&']"), "");
- name = name.tqreplace(TQRegExp("[ ]"), "_").lower();
+ name = name.replace(TQRegExp("[&']"), "");
+ name = name.replace(TQRegExp("[ ]"), "_").lower();
dill->setAnchorName("game_" + name);
connect(dill, TQT_SIGNAL(saveGame()), TQT_SLOT(saveGame()));
connect(dill, TQT_SIGNAL(gameInfo(const TQString&)),