summaryrefslogtreecommitdiffstats
path: root/plugins/stats/StatsSpd.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/StatsSpd.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/StatsSpd.cc')
-rw-r--r--plugins/stats/StatsSpd.cc42
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/stats/StatsSpd.cc b/plugins/stats/StatsSpd.cc
index e4f9d53..0ea427a 100644
--- a/plugins/stats/StatsSpd.cc
+++ b/plugins/stats/StatsSpd.cc
@@ -22,29 +22,29 @@
namespace kt {
-StatsSpd::StatsSpd(QWidget *p) : StatsSpdWgt(p),
+StatsSpd::StatsSpd(TQWidget *p) : StatsSpdWgt(p),
pmDownCht(new ChartDrawer(DownSpeedGbw, StatsPluginSettings::downloadMeasurements())),
pmPeersSpdCht(new ChartDrawer(PeersSpdGbw, StatsPluginSettings::peersSpeedMeasurements())),
pmUpCht(new ChartDrawer(UpSpeedGbw, StatsPluginSettings::uploadMeasurements()))
{
DownSpeedGbw->setColumnLayout(0, Qt::Vertical );
- DownSpeedGbw->layout()->setSpacing( 6 );
- DownSpeedGbw->layout()->setMargin( 11 );
+ DownSpeedGbw->tqlayout()->setSpacing( 6 );
+ DownSpeedGbw->tqlayout()->setMargin( 11 );
- pmDSpdLay = new QVBoxLayout(DownSpeedGbw -> layout());
+ pmDSpdLay = new TQVBoxLayout(DownSpeedGbw -> tqlayout());
UpSpeedGbw->setColumnLayout(0, Qt::Vertical );
- UpSpeedGbw->layout()->setSpacing( 6 );
- UpSpeedGbw->layout()->setMargin( 11 );
+ UpSpeedGbw->tqlayout()->setSpacing( 6 );
+ UpSpeedGbw->tqlayout()->setMargin( 11 );
- pmUSpdLay = new QVBoxLayout(UpSpeedGbw -> layout());
+ pmUSpdLay = new TQVBoxLayout(UpSpeedGbw -> tqlayout());
PeersSpdGbw->setColumnLayout(0, Qt::Vertical );
- PeersSpdGbw->layout()->setSpacing( 6 );
- PeersSpdGbw->layout()->setMargin( 11 );
+ PeersSpdGbw->tqlayout()->setSpacing( 6 );
+ PeersSpdGbw->tqlayout()->setMargin( 11 );
- pmPeersSpdLay = new QVBoxLayout(PeersSpdGbw -> layout());
+ pmPeersSpdLay = new TQVBoxLayout(PeersSpdGbw -> tqlayout());
//-----------------
@@ -54,25 +54,25 @@ StatsSpd::StatsSpd(QWidget *p) : StatsSpdWgt(p),
// ----------------
- pmUpCht -> AddValuesCnt(QPen("#f00"), i18n("Current"));
- pmDownCht -> AddValuesCnt(QPen("#f00"), i18n("Current"));
+ pmUpCht -> AddValuesCnt(TQPen("#f00"), i18n("Current"));
+ pmDownCht -> AddValuesCnt(TQPen("#f00"), i18n("Current"));
- pmUpCht -> AddValuesCnt(QPen("#00f"), i18n("Average"));
- pmDownCht -> AddValuesCnt(QPen("#00f"), i18n("Average"));
+ pmUpCht -> AddValuesCnt(TQPen("#00f"), i18n("Average"));
+ pmDownCht -> AddValuesCnt(TQPen("#00f"), i18n("Average"));
pmUpCht -> AddValuesCnt(i18n("Limit"), 0);
pmDownCht -> AddValuesCnt(i18n("Limit"), 0);
-// pmUpCht -> AddValuesCnt(QPen("#f0f"), i18n("Current torrent"));
-// pmDownCht -> AddValuesCnt(QPen("#f0f"), i18n("Current torrent"));
+// pmUpCht -> AddValuesCnt(TQPen("#f0f"), i18n("Current torrent"));
+// pmDownCht -> AddValuesCnt(TQPen("#f0f"), i18n("Current torrent"));
//
- pmPeersSpdCht -> AddValuesCnt(QPen("#090"), i18n("Average from leecher"));
- pmPeersSpdCht -> AddValuesCnt(QPen("#f00"), i18n("Average to leecher"));
- pmPeersSpdCht -> AddValuesCnt(QPen("#00f"), i18n("Average from seeder"));
- pmPeersSpdCht -> AddValuesCnt(QPen("magenta"), i18n("From leechers"));
- pmPeersSpdCht -> AddValuesCnt(QPen("orange"), i18n("From seeders"));
+ pmPeersSpdCht -> AddValuesCnt(TQPen("#090"), i18n("Average from leecher"));
+ pmPeersSpdCht -> AddValuesCnt(TQPen("#f00"), i18n("Average to leecher"));
+ pmPeersSpdCht -> AddValuesCnt(TQPen("#00f"), i18n("Average from seeder"));
+ pmPeersSpdCht -> AddValuesCnt(TQPen("magenta"), i18n("From leechers"));
+ pmPeersSpdCht -> AddValuesCnt(TQPen("orange"), i18n("From seeders"));
}