diff options
Diffstat (limited to 'kpat/pwidget.cpp')
-rw-r--r-- | kpat/pwidget.cpp | 8 |
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&)), |