summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/tree.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:10:05 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:10:05 -0600
commit74a2067d286867e313f736d6733407586b71195e (patch)
tree182ea565d6909db1541424e4ffb3168b4b139c21 /noatun-plugins/oblique/tree.cpp
parent081670a12774435ae60cf8eba9226b91d27852b3 (diff)
downloadtdeaddons-74a2067d286867e313f736d6733407586b71195e.tar.gz
tdeaddons-74a2067d286867e313f736d6733407586b71195e.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'noatun-plugins/oblique/tree.cpp')
-rw-r--r--noatun-plugins/oblique/tree.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/noatun-plugins/oblique/tree.cpp b/noatun-plugins/oblique/tree.cpp
index 04c9cdd..4c83cc8 100644
--- a/noatun-plugins/oblique/tree.cpp
+++ b/noatun-plugins/oblique/tree.cpp
@@ -150,7 +150,7 @@ inline static void sortify(T *item)
TreeItem::TreeItem(Tree *parent, QueryGroup *group, const File &file, const TQString &p)
- : KListViewItem(parent, p), mGroup(group), mUserOpened(false), mHidden(false)
+ : TDEListViewItem(parent, p), mGroup(group), mUserOpened(false), mHidden(false)
{
if (group->option(QueryGroup::Playable))
{
@@ -162,7 +162,7 @@ TreeItem::TreeItem(Tree *parent, QueryGroup *group, const File &file, const TQSt
}
TreeItem::TreeItem(TreeItem *parent, QueryGroup *group, const File &file, const TQString &p)
- : KListViewItem(parent, p), mGroup(group), mUserOpened(false), mHidden(false)
+ : TDEListViewItem(parent, p), mGroup(group), mUserOpened(false), mHidden(false)
{
if (group->option(QueryGroup::Playable))
{
@@ -250,7 +250,7 @@ int TreeItem::compare(TQListViewItem *i, int col, bool) const
Tree *TreeItem::tree()
{
- return static_cast<Tree*>(KListViewItem::listView());
+ return static_cast<Tree*>(TDEListViewItem::listView());
}
TQString TreeItem::presentation() const
@@ -309,7 +309,7 @@ void TreeItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int w
text.setRgb(r/2,g/2,b/2);
newcg.setColor(TQColorGroup::Text, text);
}
- KListViewItem::paintCell(p, newcg, column, width, align);
+ TDEListViewItem::paintCell(p, newcg, column, width, align);
font.setUnderline(false);
p->setFont(font);
@@ -322,7 +322,7 @@ void TreeItem::setOpen(bool o)
mUserOpened = o;
tree()->removeAutoExpanded(this);
}
- KListViewItem::setOpen(o);
+ TDEListViewItem::setOpen(o);
}
void TreeItem::autoExpand()
@@ -432,7 +432,7 @@ TreeItem *TreeItem::next()
Tree::Tree(Oblique *oblique, TQWidget *parent)
- : KListView(parent), mOblique(oblique), mAutoExpanding(0)
+ : TDEListView(parent), mOblique(oblique), mAutoExpanding(0)
{
mCurrent = 0;
lastMenu =0;
@@ -458,8 +458,8 @@ Tree::Tree(Oblique *oblique, TQWidget *parent)
);
connect(
- this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- TQT_SLOT(contextMenu(KListView*, TQListViewItem*, const TQPoint&))
+ this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ TQT_SLOT(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&))
);
connect(
this, TQT_SIGNAL(executed(TQListViewItem*)),
@@ -500,7 +500,7 @@ void Tree::clear()
napp->player()->stop();
setCurrent(0);
}
- KListView::clear();
+ TDEListView::clear();
}
void Tree::movableDropEvent (TQListViewItem* parent, TQListViewItem* afterme)
@@ -512,7 +512,7 @@ void Tree::movableDropEvent (TQListViewItem* parent, TQListViewItem* afterme)
return;
}
- KListView::movableDropEvent(parent, afterme);
+ TDEListView::movableDropEvent(parent, afterme);
}
@@ -533,7 +533,7 @@ void Tree::dropped(TQPtrList<TQListViewItem> &items, TQPtrList<TQListViewItem> &
TreeItem *Tree::firstChild()
- { return static_cast<TreeItem*>(KListView::firstChild()); }
+ { return static_cast<TreeItem*>(TDEListView::firstChild()); }
TreeItem *Tree::find(File item)
{
@@ -682,7 +682,7 @@ bool Tree::setSchema(const TQString &name)
TQDragObject *Tree::dragObject()
{
if (currentItem() && static_cast<TreeItem*>(currentItem())->file())
- return KListView::dragObject();
+ return TDEListView::dragObject();
return 0;
}
@@ -701,7 +701,7 @@ void Tree::setLimit(const TQString &text)
}
-void Tree::contextMenu(KListView*, TQListViewItem* i, const TQPoint& p)
+void Tree::contextMenu(TDEListView*, TQListViewItem* i, const TQPoint& p)
{
if (!i) return;
delete lastMenu;