summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/tree.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /noatun-plugins/oblique/tree.h
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/oblique/tree.h')
-rw-r--r--noatun-plugins/oblique/tree.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/noatun-plugins/oblique/tree.h b/noatun-plugins/oblique/tree.h
index f059931..8f92f2a 100644
--- a/noatun-plugins/oblique/tree.h
+++ b/noatun-plugins/oblique/tree.h
@@ -23,15 +23,15 @@ class TreeItem : public KListViewItem
bool mHidden:1;
public:
- TreeItem(Tree *parent, QueryGroup *group, const File &file, const TQString &p=0);
- TreeItem(TreeItem *parent, QueryGroup *group, const File &file, const TQString &p=0);
+ TreeItem(Tree *tqparent, QueryGroup *group, const File &file, const TQString &p=0);
+ TreeItem(TreeItem *tqparent, QueryGroup *group, const File &file, const TQString &p=0);
~TreeItem();
QueryGroup *group() { return mGroup; }
const QueryGroup *group() const { return mGroup; }
void setGroup(QueryGroup *group) { mGroup = group; }
- TreeItem *parent() { return static_cast<TreeItem*>(KListViewItem::parent()); }
+ TreeItem *tqparent() { return static_cast<TreeItem*>(KListViewItem::tqparent()); }
Tree *tree();
TreeItem *itemBelow() { return static_cast<TreeItem*>(KListViewItem::itemBelow()); }
TreeItem *firstChild() { return static_cast<TreeItem*>(KListViewItem::firstChild()); }
@@ -45,13 +45,13 @@ public:
void setOpen(bool o);
- TreeItem *find(File item);
+ TreeItem *tqfind(File item);
bool playable() const;
/**
* get the next item that is playable logically.
- * that is, if it has a File, and its parent hasn't a
+ * that is, if it has a File, and its tqparent hasn't a
* File
**/
TreeItem *nextPlayable();
@@ -61,8 +61,8 @@ public:
virtual int compare(TQListViewItem * i, int col, bool) const;
/**
- * open my parents so that I'm visible, if I'm playing or
- * close my parents if I'm not playing, and the user
+ * open my tqparents so that I'm visible, if I'm playing or
+ * close my tqparents if I'm not playing, and the user
* didn't open
**/
void autoExpand();
@@ -86,6 +86,7 @@ class Loader;
class Tree : public KListView
{
Q_OBJECT
+ TQ_OBJECT
Oblique *mOblique;
Query mQuery;
@@ -103,10 +104,10 @@ Q_OBJECT
Loader *mLoader;
public:
- Tree(Oblique *oblique, TQWidget *parent=0);
+ Tree(Oblique *oblique, TQWidget *tqparent=0);
~Tree();
TreeItem *firstChild();
- TreeItem *find(File item);
+ TreeItem *tqfind(File item);
TreeItem *current() { return mCurrent; }
Query *query() { return &mQuery; }
Oblique *oblique() { return mOblique; }
@@ -129,10 +130,10 @@ public:
protected:
virtual TQDragObject *dragObject();
- void movableDropEvent(TQListViewItem* parent, TQListViewItem* afterme);
+ void movableDropEvent(TQListViewItem* tqparent, TQListViewItem* afterme);
public slots:
- void insert(TreeItem *replace, File file);
+ void insert(TreeItem *tqreplace, File file);
void insert(File file);
void remove(File file);
void update(File file);
@@ -181,7 +182,7 @@ private:
TreeItem *node(TreeItem *fix, QueryGroup *group, const File &file, TreeItem *childOf);
/**
- * remove the siblings and children of the treeitem
+ * remove the siblings and tqchildren of the treeitem
**/
void remove(TreeItem *, const File &file);