From 7ef01c0f34d9c6732d258154bcd3ba5a88280db9 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/kdemultimedia@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun/modules/splitplaylist/view.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'noatun/modules/splitplaylist/view.cpp') diff --git a/noatun/modules/splitplaylist/view.cpp b/noatun/modules/splitplaylist/view.cpp index f1874f3a..97ccca20 100644 --- a/noatun/modules/splitplaylist/view.cpp +++ b/noatun/modules/splitplaylist/view.cpp @@ -288,7 +288,7 @@ void SafeListViewItem::stateChange(bool s) TQPtrList list=SPL->view->listView()->selectedItems(); // but not if I'm not selected - if (list.tqcontainsRef(this)) + if (list.containsRef(this)) for (TQListViewItem *i=list.first(); i != 0; i=list.next()) static_cast(i)->setOn(s); else @@ -647,7 +647,7 @@ View::View(SplitPlaylist *) mDelete=new KAction(i18n("Delete"), "editdelete", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(deleteSelected()), actionCollection(), "delete"); mClose=KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); - mFind=KStdAction::find(TQT_TQOBJECT(this), TQT_SLOT(tqfind()), actionCollection()); + mFind=KStdAction::find(TQT_TQOBJECT(this), TQT_SLOT(find()), actionCollection()); (void) KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolBars()), actionCollection()); mOpenNew=KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(openNew()), actionCollection()); @@ -666,7 +666,7 @@ View::View(SplitPlaylist *) list->setFocus(); } -void View::tqfind() +void View::find() { mFinder->show(); connect(mFinder, TQT_SIGNAL(search(Finder*)), TQT_SLOT(findIt(Finder*))); @@ -675,15 +675,15 @@ void View::tqfind() static bool testWord(TQListViewItem *i, const TQString &finder) { PlaylistItemData *item=static_cast(i); - if (item->title().tqfind(finder, 0, false) >=0) + if (item->title().find(finder, 0, false) >=0) return true; - if (item->file().tqfind(finder, 0, false) >=0) + if (item->file().find(finder, 0, false) >=0) return true; - if (item->url().path().tqfind(finder.local8Bit().data(), 0, false) >=0) + if (item->url().path().find(finder.local8Bit().data(), 0, false) >=0) return true; - if (item->lengthString().tqfind(finder, 0, false) >=0) + if (item->lengthString().find(finder, 0, false) >=0) return true; - if (item->mimetype().tqfind(finder.local8Bit().data(), 0, false) >=0) + if (item->mimetype().find(finder.local8Bit().data(), 0, false) >=0) return true; return false; } @@ -691,15 +691,15 @@ static bool testWord(TQListViewItem *i, const TQString &finder) static bool testWord(TQListViewItem *i, const TQRegExp &finder) { PlaylistItemData *item=static_cast(i); - if (item->title().tqfind(finder) >=0) + if (item->title().find(finder) >=0) return true; - if (item->file().tqfind(finder) >=0) + if (item->file().find(finder) >=0) return true; - if (item->url().path().tqfind(finder) >=0) + if (item->url().path().find(finder) >=0) return true; - if (item->lengthString().tqfind(finder) >=0) + if (item->lengthString().find(finder) >=0) return true; - if (item->mimetype().tqfind(finder) >=0) + if (item->mimetype().find(finder) >=0) return true; return false; } -- cgit v1.2.1