diff options
Diffstat (limited to 'noatun-plugins/nexscope/gui.cpp')
-rw-r--r-- | noatun-plugins/nexscope/gui.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/noatun-plugins/nexscope/gui.cpp b/noatun-plugins/nexscope/gui.cpp index 912d8ea..9a4776e 100644 --- a/noatun-plugins/nexscope/gui.cpp +++ b/noatun-plugins/nexscope/gui.cpp @@ -1,7 +1,7 @@ #include <klocale.h> -#include <qheader.h> -#include <qlayout.h> -#include <qdragobject.h> +#include <tqheader.h> +#include <tqlayout.h> +#include <tqdragobject.h> #include <kfiledialog.h> #include <kstdaction.h> #include <kaction.h> @@ -13,8 +13,8 @@ class CreatorItem : public QListViewItem { public: - CreatorItem(QListView *parent, const QString &title) - : QListViewItem(parent, title) + CreatorItem(TQListView *parent, const TQString &title) + : TQListViewItem(parent, title) {} }; @@ -22,7 +22,7 @@ class TreeItem : public QListViewItem { public: TreeItem(TreeItem *parent, TreeItem *after, CreatorItem *creator) - : QListViewItem(parent, after, creator->text(0)) + : TQListViewItem(parent, after, creator->text(0)) { RendererList *list; if (parent) @@ -42,8 +42,8 @@ public: list->unlock(); } - TreeItem(QListView *parent, TreeItem *after, const QString &title) - : QListViewItem(parent, after, title) + TreeItem(TQListView *parent, TreeItem *after, const TQString &title) + : TQListViewItem(parent, after, title) { mRenderer=nex->rendererList(); setExpandable(true); @@ -72,27 +72,27 @@ Control::Control() : mConfigurator(0) { { KToolBar *tools=toolBar(); - KStdAction::save(this, SLOT(save()), actionCollection())->plug(tools); - KStdAction::saveAs(this, SLOT(saveAs()), actionCollection())->plug(tools); - KStdAction::open(this, SLOT(open()), actionCollection())->plug(tools); + KStdAction::save(this, TQT_SLOT(save()), actionCollection())->plug(tools); + KStdAction::saveAs(this, TQT_SLOT(saveAs()), actionCollection())->plug(tools); + KStdAction::open(this, TQT_SLOT(open()), actionCollection())->plug(tools); } setCaption(i18n("Nex Configuration")); - QSplitter *mainSplitter=new QSplitter(this); + TQSplitter *mainSplitter=new TQSplitter(this); setCentralWidget(mainSplitter); - QSplitter *left=new QSplitter(Qt::Vertical, mainSplitter); + TQSplitter *left=new TQSplitter(Qt::Vertical, mainSplitter); { mTree=new RendererListView(left); mTree->setItemsMovable(true); mTree->setSorting(-1); mTree->setRootIsDecorated(true); - connect(mTree, SIGNAL(dropped(QDropEvent*, QListViewItem*, QListViewItem*)), - SLOT(dropEvent(QDropEvent*, QListViewItem*, QListViewItem*))); + connect(mTree, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)), + TQT_SLOT(dropEvent(TQDropEvent*, TQListViewItem*, TQListViewItem*))); - connect(mTree, SIGNAL(currentChanged(QListViewItem*)), - SLOT(currentChanged(QListViewItem*))); + connect(mTree, TQT_SIGNAL(currentChanged(TQListViewItem*)), + TQT_SLOT(currentChanged(TQListViewItem*))); mCreatorsList=new RendererListView(left); mCreatorsList->addColumn(i18n("Name")); @@ -100,11 +100,11 @@ Control::Control() : mConfigurator(0) mCreatorsList->setDropVisualizer(false); } - mRight=new QWidget(mainSplitter); - (new QHBoxLayout(mRight))->setAutoAdd(true); + mRight=new TQWidget(mainSplitter); + (new TQHBoxLayout(mRight))->setAutoAdd(true); - QStringList list=nex->renderers(); - for (QStringList::Iterator i=list.begin(); i!=list.end(); ++i) + TQStringList list=nex->renderers(); + for (TQStringList::Iterator i=list.begin(); i!=list.end(); ++i) addCreator(*i); new TreeItem(mTree, 0, i18n("Main")); @@ -144,12 +144,12 @@ void Control::open(const KURL &file) } -void Control::addCreator(const QString &title) +void Control::addCreator(const TQString &title) { new CreatorItem(mCreatorsList, title); } -void Control::dropEvent(QDropEvent *e, QListViewItem *parent, QListViewItem *pafter) +void Control::dropEvent(TQDropEvent *e, TQListViewItem *parent, TQListViewItem *pafter) { // if ((e->source() == mCreatorsList) && parent) { @@ -163,7 +163,7 @@ void Control::dropEvent(QDropEvent *e, QListViewItem *parent, QListViewItem *paf } } -void Control::currentChanged(QListViewItem *item) +void Control::currentChanged(TQListViewItem *item) { TreeItem *treeItem=static_cast<TreeItem*>(item); delete mConfigurator; @@ -173,24 +173,24 @@ void Control::currentChanged(QListViewItem *item) } -RendererListView::RendererListView(QWidget *p) : KListView(p) +RendererListView::RendererListView(TQWidget *p) : KListView(p) { addColumn(i18n("Name")); header()->hide(); setDragEnabled(true); setAcceptDrops(true); - setSelectionMode(QListView::Single); + setSelectionMode(TQListView::Single); } -bool RendererListView::acceptDrag(QDropEvent *event) const +bool RendererListView::acceptDrag(TQDropEvent *event) const { - return true; //QCString(event->format()) == "application/x-nex-rendererdrag"; + return true; //TQCString(event->format()) == "application/x-nex-rendererdrag"; } -QDragObject *RendererListView::dragObject() const +TQDragObject *RendererListView::dragObject() const { if (!currentItem()) return 0; - return new QStoredDrag("application/x-nex-rendererdrag", (QWidget*)this); + return new TQStoredDrag("application/x-nex-rendererdrag", (TQWidget*)this); } |