From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: 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 --- plugins/stats/statsplugin.cc | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'plugins/stats/statsplugin.cc') diff --git a/plugins/stats/statsplugin.cc b/plugins/stats/statsplugin.cc index d3d1b03..224d736 100644 --- a/plugins/stats/statsplugin.cc +++ b/plugins/stats/statsplugin.cc @@ -25,8 +25,8 @@ K_EXPORT_COMPONENT_FACTORY(ktstatsplugin, KGenericFactory("ktst namespace kt { -StatsPlugin::StatsPlugin(QObject* parent, const char* qt_name, const QStringList& args): - Plugin(parent, qt_name, args, "Statistics", i18n("Statistics"),"Krzysztof Kundzicz", "athantor@gmail.com", i18n("Shows transfers statistics"),"ktimemon"), pmUiSpd(0), pmUiCon(0), pmPrefsUi(0), pmUpdTmr(0) +StatsPlugin::StatsPlugin(TQObject* tqparent, const char* qt_name, const TQStringList& args): + Plugin(tqparent, qt_name, args, "Statistics", i18n("Statistics"),"Krzysztof Kundzicz", "athantor@gmail.com", i18n("Shows transfers statistics"),"ktimemon"), pmUiSpd(0), pmUiCon(0), pmPrefsUi(0), pmUpdTmr(0) { mUpAvg = std::make_pair(0.0, 0.0); mDownAvg = std::make_pair(0.0, 0.0); @@ -46,18 +46,18 @@ void StatsPlugin::load() mUpdCtr = 1; mPeerSpdUpdCtr = 1; - pmUiSpd = new StatsSpd(dynamic_cast(parent())); - pmUiCon = new StatsCon(dynamic_cast(parent())); + pmUiSpd = new StatsSpd(dynamic_cast(tqparent())); + pmUiCon = new StatsCon(dynamic_cast(tqparent())); pmPrefsUi = new StatsPluginPrefs(); - pmUpdTmr = new QTimer(this); + pmUpdTmr = new TQTimer(this); - connect(pmUpdTmr, SIGNAL(timeout () ), this, SLOT(UpdateData())); - connect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(RestartTimer())); - connect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(TogglePeersSpdCht())); - connect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(ToggleLchInSwmDrawing())); - connect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(ToggleSdrInSwmDrawing())); - connect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(ChangeMsmtsCounts())); - connect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(ChangeMaxMode())); + connect(pmUpdTmr, TQT_SIGNAL(timeout () ), this, TQT_SLOT(UpdateData())); + connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(RestartTimer())); + connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(TogglePeersSpdCht())); + connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ToggleLchInSwmDrawing())); + connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ToggleSdrInSwmDrawing())); + connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ChangeMsmtsCounts())); + connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ChangeMaxMode())); TogglePeersSpdCht(); ChangeMaxMode(); @@ -76,13 +76,13 @@ void StatsPlugin::unload() getGUI() -> removeToolWidget(pmUiCon); getGUI() -> removePrefPage(pmPrefsUi); - disconnect(pmUpdTmr, SIGNAL(timeout()), this, SLOT(UpdateData())); - disconnect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(RestartTimer())); - disconnect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(TogglePeersSpdCht())); - disconnect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(ToggleLchInSwmDrawing())); - disconnect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(ToggleSdrInSwmDrawing())); - disconnect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(ChangeMsmtsCounts())); - disconnect(pmPrefsUi, SIGNAL(Applied()), this, SLOT(ChangeMaxMode())); + disconnect(pmUpdTmr, TQT_SIGNAL(timeout()), this, TQT_SLOT(UpdateData())); + disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(RestartTimer())); + disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(TogglePeersSpdCht())); + disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ToggleLchInSwmDrawing())); + disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ToggleSdrInSwmDrawing())); + disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ChangeMsmtsCounts())); + disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ChangeMaxMode())); delete pmUiSpd; delete pmUiCon; @@ -90,7 +90,7 @@ void StatsPlugin::unload() delete pmUpdTmr; } -bool StatsPlugin::versionCheck(const QString& rVer) const +bool StatsPlugin::versionCheck(const TQString& rVer) const { return rVer == KT_VERSION_MACRO; } -- cgit v1.2.1