diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 63c4fb318b4b6c0c22fce659f0029e4b21112c86 (patch) | |
tree | 9bb206b2d90ed5fe44cea4fcb5732b6741eaaa3e /src/playlistview.cpp | |
parent | 0d5a05983c0c2ba7a51bdeb1688dc232bacfa8ff (diff) | |
download | kmplayer-63c4fb318b4b6c0c22fce659f0029e4b21112c86.tar.gz kmplayer-63c4fb318b4b6c0c22fce659f0029e4b21112c86.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/playlistview.cpp')
-rw-r--r-- | src/playlistview.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/playlistview.cpp b/src/playlistview.cpp index bf5b566..ef4af01 100644 --- a/src/playlistview.cpp +++ b/src/playlistview.cpp @@ -134,7 +134,7 @@ KDE_NO_CDTOR_EXPORT PlayListView::PlayListView (TQWidget * tqparent, View * view menu_pix = KGlobal::iconLoader ()->loadIcon (TQString ("player_playlist"), KIcon::Small); config_pix = KGlobal::iconLoader ()->loadIcon (TQString ("configure"), KIcon::Small); url_pix = KGlobal::iconLoader ()->loadIcon (TQString ("www"), KIcon::Small); - m_tqfind = KStdAction::find (TQT_TQOBJECT(this), TQT_SLOT (slotFind ()), ac, "tqfind"); + m_find = KStdAction::find (TQT_TQOBJECT(this), TQT_SLOT (slotFind ()), ac, "find"); m_find_next = KStdAction::findNext (TQT_TQOBJECT(this), TQT_SLOT(slotFindNext()), ac, "next"); m_find_next->setEnabled (false); connect (this, TQT_SIGNAL (contextMenuRequested (TQListViewItem *, const TQPoint &, int)), this, TQT_SLOT (contextMenuItem (TQListViewItem *, const TQPoint &, int))); @@ -312,7 +312,7 @@ void PlayListView::selectItem (const TQString & txt) { TQListViewItem * item = selectedItem (); if (item && item->text (0) == txt) return; - item = tqfindItem (txt, 0); + item = findItem (txt, 0); if (item) { setSelected (item, true); ensureItemVisible (item); @@ -346,7 +346,7 @@ KDE_NO_EXPORT void PlayListView::contextMenuItem (TQListViewItem * vi, const TQP if (item->node || item->m_attr) { RootPlayListItem * ritem = rootItem (vi); if (m_itemmenu->count () > 0) { - m_tqfind->unplug (m_itemmenu); + m_find->unplug (m_itemmenu); m_find_next->unplug (m_itemmenu); m_itemmenu->clear (); } @@ -368,7 +368,7 @@ KDE_NO_EXPORT void PlayListView::contextMenuItem (TQListViewItem * vi, const TQP m_itemmenu->setItemChecked (2, ritem->show_all_nodes); } m_itemmenu->insertSeparator (); - m_tqfind->plug (m_itemmenu); + m_find->plug (m_itemmenu); m_find_next->plug (m_itemmenu); emit prepareMenu (item, m_itemmenu); m_itemmenu->exec (p); @@ -506,7 +506,7 @@ KDE_NO_EXPORT void PlayListView::itemIsRenamed (TQListViewItem * qitem) { updateTree (ri, item->node, true); } else if (item->m_attr) { TQString txt = item->text (0); - int pos = txt.tqfind (TQChar ('=')); + int pos = txt.find (TQChar ('=')); if (pos > -1) { item->m_attr->setName (txt.left (pos)); item->m_attr->setValue (txt.mid (pos + 1)); @@ -553,7 +553,7 @@ KDE_NO_EXPORT void PlayListView::editCurrent () { KDE_NO_EXPORT void PlayListView::slotFind () { m_current_find_elm = 0L; if (!m_find_dialog) { - m_find_dialog = new KFindDialog (false, this, "kde_kmplayer_tqfind", KFindDialog::CaseSensitive); + m_find_dialog = new KFindDialog (false, this, "kde_kmplayer_find", KFindDialog::CaseSensitive); m_find_dialog->setHasSelection (false); connect(m_find_dialog, TQT_SIGNAL(okClicked ()), this, TQT_SLOT(slotFindOk ())); } else @@ -607,7 +607,7 @@ KDE_NO_EXPORT void PlayListView::slotFindOk () { slotFindNext (); } -/* A bit tricky, but between the tqfind's PlayListItems might be gone, so +/* A bit tricky, but between the find's PlayListItems might be gone, so * try to match on the generated tree following the source's document tree */ KDE_NO_EXPORT void PlayListView::slotFindNext () { @@ -640,9 +640,9 @@ KDE_NO_EXPORT void PlayListView::slotFindNext () { } else if (!elm) val = n->nodeValue (); if (((opt & KFindDialog::RegularExpression) && - val.tqfind (regexp, 0) > -1) || + val.find (regexp, 0) > -1) || (!(opt & KFindDialog::RegularExpression) && - val.tqfind (str, 0, cs) > -1)) { + val.find (str, 0, cs) > -1)) { node = n; m_current_find_attr = 0L; found = true; @@ -650,9 +650,9 @@ KDE_NO_EXPORT void PlayListView::slotFindNext () { for (AttributePtr a = convertNode <Element> (n)->attributes ()->first (); a; a = a->nextSibling ()) { TQString attr = a->name ().toString (); if (((opt & KFindDialog::RegularExpression) && - (attr.tqfind (regexp, 0) || a->value ().tqfind (regexp, 0) > -1)) || + (attr.find (regexp, 0) || a->value ().find (regexp, 0) > -1)) || (!(opt & KFindDialog::RegularExpression) && - (attr.tqfind (str, 0, cs) > -1 || a->value ().tqfind (str, 0, cs) > -1))) { + (attr.find (str, 0, cs) > -1 || a->value ().find (str, 0, cs) > -1))) { node = n; m_current_find_attr = a; found = true; |