diff options
Diffstat (limited to 'noatun-plugins/oblique/tree.cpp')
-rw-r--r-- | noatun-plugins/oblique/tree.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/noatun-plugins/oblique/tree.cpp b/noatun-plugins/oblique/tree.cpp index a8aaf67..fdf210e 100644 --- a/noatun-plugins/oblique/tree.cpp +++ b/noatun-plugins/oblique/tree.cpp @@ -258,14 +258,14 @@ TQString TreeItem::presentation() const return text(0); } -TreeItem *TreeItem::tqfind(File item) +TreeItem *TreeItem::find(File item) { TreeItem *i = firstChild(); while (i) { if (i->file() == item) return i; - TreeItem *found = i->tqfind(item); + TreeItem *found = i->find(item); if (found and found->playable()) return found; i = i->nextSibling(); } @@ -352,7 +352,7 @@ bool TreeItem::hideIfNoMatch(const TQString &match) { if (match.length()) { - if (!text(0).tqcontains(match, false)) + if (!text(0).contains(match, false)) { setHidden(true); return false; @@ -367,7 +367,7 @@ bool TreeItem::hideIfNoMatch(const TQString &match) if (match.length()) { - visible = text(0).tqcontains(match, false); + visible = text(0).contains(match, false); } if (visible) @@ -535,7 +535,7 @@ void Tree::dropped(TQPtrList<TQListViewItem> &items, TQPtrList<TQListViewItem> & TreeItem *Tree::firstChild() { return static_cast<TreeItem*>(KListView::firstChild()); } -TreeItem *Tree::tqfind(File item) +TreeItem *Tree::find(File item) { TreeItem *i = firstChild(); @@ -543,7 +543,7 @@ TreeItem *Tree::tqfind(File item) { if (i->file() == item) return i; - TreeItem *found = i->tqfind(item); + TreeItem *found = i->find(item); if (found) return found; i = i->nextSibling(); @@ -551,19 +551,19 @@ TreeItem *Tree::tqfind(File item) return i; } -void Tree::insert(TreeItem *tqreplace, File file) +void Tree::insert(TreeItem *replace, File file) { - TreeItem *created = collate(tqreplace, file); - if (mCurrent == tqreplace) + TreeItem *created = collate(replace, file); + if (mCurrent == replace) { mCurrent = created; repaintItem(created); - if (isSelected(tqreplace)) + if (isSelected(replace)) setSelected(created, true); } - if (created != tqreplace) + if (created != replace) { - delete tqreplace; + delete replace; } } @@ -592,7 +592,7 @@ void Tree::checkRemove(Slice *slice, File f) void Tree::update(File file) { - if (TreeItem *item = tqfind(file)) + if (TreeItem *item = find(file)) { insert(item, file); } |