summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/nexscope/gui.cpp
diff options
context:
space:
mode:
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);
}
}