diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kpf/src/BandwidthGraph.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpf/src/BandwidthGraph.cpp')
-rw-r--r-- | kpf/src/BandwidthGraph.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kpf/src/BandwidthGraph.cpp b/kpf/src/BandwidthGraph.cpp index 9acc85e5..bc2f1ee8 100644 --- a/kpf/src/BandwidthGraph.cpp +++ b/kpf/src/BandwidthGraph.cpp @@ -40,10 +40,10 @@ namespace KPF ( WebServer * server, OverlaySelect overlaySelect, - TQWidget * parent, + TQWidget * tqparent, const char * name ) - : TQWidget (parent, name, WRepaintNoErase), + : TQWidget (tqparent, name, WRepaintNoErase), server_ (server), max_ (0L), overlaySelect_ (overlaySelect) @@ -88,10 +88,10 @@ namespace KPF BandwidthGraph::setTooltip() { TQToolTip::add(this, i18n( "%1 on port %2" ) - .arg( server_->root() ).arg( server_->listenPort() ) ); + .tqarg( server_->root() ).tqarg( server_->listenPort() ) ); } - QRect + TQRect BandwidthGraph::contentsRect() const { return TQRect(1, 1, width() - 2, height() - 2); @@ -112,7 +112,7 @@ namespace KPF p.drawPixmap( ( width()-bgPix_.width() )/2, ( height()-bgPix_.height() )/2, bgPix_ ); - p.setPen(colorGroup().dark()); + p.setPen(tqcolorGroup().dark()); for (uint i = 0; i < history_.size(); i++) { @@ -251,15 +251,15 @@ namespace KPF if (max_ > 1024) if (max_ > 1024 * 1024) - maxString = mbs.arg(max_ / (1024 * 1024)); + maxString = mbs.tqarg(max_ / (1024 * 1024)); else - maxString = kbs.arg(max_ / 1024); + maxString = kbs.tqarg(max_ / 1024); else if ( max_ > 0 ) - maxString = bs.arg(max_); + maxString = bs.tqarg(max_); else maxString = i18n( "Idle" ); - p.setPen(Qt::white); + p.setPen(TQt::white); p.drawText ( @@ -268,7 +268,7 @@ namespace KPF maxString ); - p.setPen(Qt::black); + p.setPen(TQt::black); p.drawText ( @@ -279,14 +279,14 @@ namespace KPF } } - QSize - BandwidthGraph::sizeHint() const + TQSize + BandwidthGraph::tqsizeHint() const { return TQSize(32, 32); } - QSize - BandwidthGraph::minimumSizeHint() const + TQSize + BandwidthGraph::tqminimumSizeHint() const { return TQSize(12, 12); } |