summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/nexscope/gui.cpp
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/nexscope/gui.cpp
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/nexscope/gui.cpp')
-rw-r--r--noatun-plugins/nexscope/gui.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/noatun-plugins/nexscope/gui.cpp b/noatun-plugins/nexscope/gui.cpp
index 9a4776e..d483a22 100644
--- a/noatun-plugins/nexscope/gui.cpp
+++ b/noatun-plugins/nexscope/gui.cpp
@@ -10,23 +10,23 @@
#include "renderers.h"
#include "nex.h"
-class CreatorItem : public QListViewItem
+class CreatorItem : public TQListViewItem
{
public:
- CreatorItem(TQListView *parent, const TQString &title)
- : TQListViewItem(parent, title)
+ CreatorItem(TQListView *tqparent, const TQString &title)
+ : TQListViewItem(tqparent, title)
{}
};
-class TreeItem : public QListViewItem
+class TreeItem : public TQListViewItem
{
public:
- TreeItem(TreeItem *parent, TreeItem *after, CreatorItem *creator)
- : TQListViewItem(parent, after, creator->text(0))
+ TreeItem(TreeItem *tqparent, TreeItem *after, CreatorItem *creator)
+ : TQListViewItem(tqparent, after, creator->text(0))
{
RendererList *list;
- if (parent)
- list=static_cast<RendererList*>(parent->mRenderer);
+ if (tqparent)
+ list=static_cast<RendererList*>(tqparent->mRenderer);
else
list=nex->rendererList();
@@ -35,15 +35,15 @@ public:
afterRenderer=after->mRenderer;
list->lock();
- int pos=list->renderers().findRef(afterRenderer);
+ int pos=list->renderers().tqfindRef(afterRenderer);
if (pos==-1) pos=list->renderers().count();
list->renderers().insert((uint)pos, mRenderer=nex->renderer(creator->text(0)));
list->unlock();
}
- TreeItem(TQListView *parent, TreeItem *after, const TQString &title)
- : TQListViewItem(parent, after, title)
+ TreeItem(TQListView *tqparent, TreeItem *after, const TQString &title)
+ : TQListViewItem(tqparent, after, title)
{
mRenderer=nex->rendererList();
setExpandable(true);
@@ -52,8 +52,8 @@ public:
~TreeItem()
{
RendererList *list;
- if (parent())
- list=static_cast<RendererList*>(static_cast<TreeItem*>(parent())->mRenderer);
+ if (tqparent())
+ list=static_cast<RendererList*>(static_cast<TreeItem*>(tqparent())->mRenderer);
else
return;
@@ -149,9 +149,9 @@ void Control::addCreator(const TQString &title)
new CreatorItem(mCreatorsList, title);
}
-void Control::dropEvent(TQDropEvent *e, TQListViewItem *parent, TQListViewItem *pafter)
+void Control::dropEvent(TQDropEvent *e, TQListViewItem *tqparent, TQListViewItem *pafter)
{
-// if ((e->source() == mCreatorsList) && parent)
+// if ((e->source() == mCreatorsList) && tqparent)
{
CreatorItem *i=static_cast<CreatorItem*>(mCreatorsList->currentItem());
if (!i)
@@ -159,7 +159,7 @@ void Control::dropEvent(TQDropEvent *e, TQListViewItem *parent, TQListViewItem *
std::cerr << "no creatoritem" << std::endl;
}
- new TreeItem(static_cast<TreeItem*>(parent), static_cast<TreeItem*>(pafter), i);
+ new TreeItem(static_cast<TreeItem*>(tqparent), static_cast<TreeItem*>(pafter), i);
}
}