summaryrefslogtreecommitdiffstats
path: root/libktorrent/pluginmanagerprefpage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/pluginmanagerprefpage.cpp
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libktorrent/pluginmanagerprefpage.cpp')
-rw-r--r--libktorrent/pluginmanagerprefpage.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/libktorrent/pluginmanagerprefpage.cpp b/libktorrent/pluginmanagerprefpage.cpp
index 8151be4..0dfc9cc 100644
--- a/libktorrent/pluginmanagerprefpage.cpp
+++ b/libktorrent/pluginmanagerprefpage.cpp
@@ -20,7 +20,7 @@
#include <klocale.h>
#include <kpushbutton.h>
#include <klistview.h>
-#include <qheader.h>
+#include <tqheader.h>
#include <kglobal.h>
#include <kiconloader.h>
#include <util/constants.h>
@@ -38,8 +38,8 @@ namespace kt
{
Plugin* p;
public:
- PluginViewItem(Plugin* p,LabelView* parent)
- : LabelViewItem(p->getIcon(),p->getGuiName(),p->getDescription(),parent),p(p)
+ PluginViewItem(Plugin* p,LabelView* tqparent)
+ : LabelViewItem(p->getIcon(),p->getGuiName(),p->getDescription(),tqparent),p(p)
{
update();
}
@@ -51,12 +51,12 @@ namespace kt
{
setTitle("<h3>" + p->getGuiName() + "</h3>");
setDescription(
- i18n("%1<br>Status: <b>%2</b><br>Author: %3").arg(p->getDescription())
- .arg(p->isLoaded() ? i18n("Loaded") : i18n("Not loaded"))
- .arg(p->getAuthor()));
+ i18n("%1<br>tqStatus: <b>%2</b><br>Author: %3").tqarg(p->getDescription())
+ .tqarg(p->isLoaded() ? i18n("Loaded") : i18n("Not loaded"))
+ .tqarg(p->getAuthor()));
}
- QString pluginName() {return p->getName();}
+ TQString pluginName() {return p->getName();}
};
PluginManagerPrefPage::PluginManagerPrefPage(PluginManager* pman)
@@ -74,16 +74,16 @@ namespace kt
return true;
}
- void PluginManagerPrefPage::createWidget(QWidget* parent)
+ void PluginManagerPrefPage::createWidget(TQWidget* tqparent)
{
- pmw = new PluginManagerWidget(parent);
+ pmw = new PluginManagerWidget(tqparent);
- connect(pmw->load_btn,SIGNAL(clicked()),this,SLOT(onLoad()));
- connect(pmw->unload_btn,SIGNAL(clicked()),this,SLOT(onUnload()));
- connect(pmw->load_all_btn,SIGNAL(clicked()),this,SLOT(onLoadAll()));
- connect(pmw->unload_all_btn,SIGNAL(clicked()),this,SLOT(onUnloadAll()));
+ connect(pmw->load_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onLoad()));
+ connect(pmw->unload_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onUnload()));
+ connect(pmw->load_all_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onLoadAll()));
+ connect(pmw->unload_all_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onUnloadAll()));
LabelView* lv = pmw->plugin_view;
- connect(lv,SIGNAL(currentChanged(LabelViewItem * )),this,SLOT(onCurrentChanged( LabelViewItem* )));
+ connect(lv,TQT_SIGNAL(currentChanged(LabelViewItem * )),this,TQT_SLOT(onCurrentChanged( LabelViewItem* )));
}
void PluginManagerPrefPage::updatePluginList()
@@ -91,11 +91,11 @@ namespace kt
LabelView* lv = pmw->plugin_view;
lv->clear();
// get list of plugins
- QPtrList<Plugin> pl;
+ TQPtrList<Plugin> pl;
pman->fillPluginList(pl);
// Add them all
- QPtrList<Plugin>::iterator i = pl.begin();
+ TQPtrList<Plugin>::iterator i = pl.begin();
while (i != pl.end())
{
Plugin* p = *i;
@@ -139,10 +139,10 @@ namespace kt
Uint32 tot = 0;
Uint32 loaded = 0;
// get list of plugins
- QPtrList<Plugin> pl;
+ TQPtrList<Plugin> pl;
pman->fillPluginList(pl);
- QPtrList<Plugin>::iterator i = pl.begin();
+ TQPtrList<Plugin>::iterator i = pl.begin();
while (i != pl.end())
{
Plugin* p = *i;