summaryrefslogtreecommitdiffstats
path: root/plugins/stats/StatsCon.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/StatsCon.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/StatsCon.cc')
-rw-r--r--plugins/stats/StatsCon.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/plugins/stats/StatsCon.cc b/plugins/stats/StatsCon.cc
index 069ba75..548b38a 100644
--- a/plugins/stats/StatsCon.cc
+++ b/plugins/stats/StatsCon.cc
@@ -22,20 +22,20 @@
namespace kt {
-StatsCon::StatsCon(QWidget * p) : StatsConWgt(p), pmPeersConCht(new ChartDrawer(PeersConGbw, StatsPluginSettings::connectionsMeasurements())),
+StatsCon::StatsCon(TQWidget * p) : StatsConWgt(p), pmPeersConCht(new ChartDrawer(PeersConGbw, StatsPluginSettings::connectionsMeasurements())),
pmDHTCht(new ChartDrawer(DHTGbw, StatsPluginSettings::dHTMeasurements()))
{
PeersConGbw->setColumnLayout(0, Qt::Vertical );
- PeersConGbw->layout()->setSpacing( 6 );
- PeersConGbw->layout()->setMargin( 11 );
+ PeersConGbw->tqlayout()->setSpacing( 6 );
+ PeersConGbw->tqlayout()->setMargin( 11 );
- pmPeersConLay = new QVBoxLayout(PeersConGbw -> layout());
+ pmPeersConLay = new TQVBoxLayout(PeersConGbw -> tqlayout());
DHTGbw->setColumnLayout(0, Qt::Vertical );
- DHTGbw->layout()->setSpacing( 6 );
- DHTGbw->layout()->setMargin( 11 );
+ DHTGbw->tqlayout()->setSpacing( 6 );
+ DHTGbw->tqlayout()->setMargin( 11 );
- pmDHTLay = new QVBoxLayout(DHTGbw -> layout());
+ pmDHTLay = new TQVBoxLayout(DHTGbw -> tqlayout());
//-------------
@@ -46,20 +46,20 @@ StatsCon::StatsCon(QWidget * p) : StatsConWgt(p), pmPeersConCht(new ChartDrawer
pmPeersConCht -> SetUnitName("n");
- pmPeersConCht -> AddValuesCnt(QPen("#f00"), i18n("Leechers connected"));
- pmPeersConCht -> AddValuesCnt(QPen("#900"), i18n("Leechers in swarms"));
- pmPeersConCht -> AddValuesCnt(QPen("#00f"), i18n("Seeders connected"));
- pmPeersConCht -> AddValuesCnt(QPen("#009"), i18n("Seeders in swarms"));
- pmPeersConCht -> AddValuesCnt(QPen("#0a0"), i18n("Average connected leechers per torrent"));
- pmPeersConCht -> AddValuesCnt(QPen("#060"), i18n("Average connected seeders per torrent"));
- pmPeersConCht -> AddValuesCnt(QPen("#099"), i18n("Average connected leechers per running torrent"));
- pmPeersConCht -> AddValuesCnt(QPen("#055"), i18n("Average connected seeders per running torrent"));
+ pmPeersConCht -> AddValuesCnt(TQPen("#f00"), i18n("Leechers connected"));
+ pmPeersConCht -> AddValuesCnt(TQPen("#900"), i18n("Leechers in swarms"));
+ pmPeersConCht -> AddValuesCnt(TQPen("#00f"), i18n("Seeders connected"));
+ pmPeersConCht -> AddValuesCnt(TQPen("#009"), i18n("Seeders in swarms"));
+ pmPeersConCht -> AddValuesCnt(TQPen("#0a0"), i18n("Average connected leechers per torrent"));
+ pmPeersConCht -> AddValuesCnt(TQPen("#060"), i18n("Average connected seeders per torrent"));
+ pmPeersConCht -> AddValuesCnt(TQPen("#099"), i18n("Average connected leechers per running torrent"));
+ pmPeersConCht -> AddValuesCnt(TQPen("#055"), i18n("Average connected seeders per running torrent"));
pmDHTCht -> SetUnitName("n");
- pmDHTCht -> AddValuesCnt(QPen("#f00"), i18n("Nodes"));
- pmDHTCht -> AddValuesCnt(QPen("#00f"), i18n("Tasks"));
+ pmDHTCht -> AddValuesCnt(TQPen("#f00"), i18n("Nodes"));
+ pmDHTCht -> AddValuesCnt(TQPen("#00f"), i18n("Tasks"));
}
StatsCon::~StatsCon()