summaryrefslogtreecommitdiffstats
path: root/plugins/stats/statsplugin.cc
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 /plugins/stats/statsplugin.cc
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 'plugins/stats/statsplugin.cc')
-rw-r--r--plugins/stats/statsplugin.cc40
1 files changed, 20 insertions, 20 deletions
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<kt::StatsPlugin>("ktst
namespace kt
{
-StatsPlugin::StatsPlugin(QObject* parent, const char* qt_name, const QStringList& args):
- Plugin(parent, qt_name, args, "Statistics", i18n("Statistics"),"Krzysztof Kundzicz", "[email protected]", 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", "[email protected]", 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<QWidget *>(parent()));
- pmUiCon = new StatsCon(dynamic_cast<QWidget *>(parent()));
+ pmUiSpd = new StatsSpd(dynamic_cast<TQWidget *>(tqparent()));
+ pmUiCon = new StatsCon(dynamic_cast<TQWidget *>(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;
}