summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/kasbar/kasloaditem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/extensions/kasbar/kasloaditem.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/extensions/kasbar/kasloaditem.cpp')
-rw-r--r--kicker/extensions/kasbar/kasloaditem.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kicker/extensions/kasbar/kasloaditem.cpp b/kicker/extensions/kasbar/kasloaditem.cpp
index b0f9c23e3..2d33a068d 100644
--- a/kicker/extensions/kasbar/kasloaditem.cpp
+++ b/kicker/extensions/kasbar/kasloaditem.cpp
@@ -6,11 +6,11 @@
#include <sys/loadavg.h> // e.g. Solaris
#endif
-#include <qpainter.h>
-#include <qbitmap.h>
-#include <qdatetime.h>
-#include <qdrawutil.h>
-#include <qtimer.h>
+#include <tqpainter.h>
+#include <tqbitmap.h>
+#include <tqdatetime.h>
+#include <tqdrawutil.h>
+#include <tqtimer.h>
#include <kdebug.h>
#include <kglobal.h>
@@ -33,12 +33,12 @@
KasLoadItem::KasLoadItem( KasBar *parent )
: KasItem( parent )
{
- QTimer *t = new QTimer( this );
- connect( t, SIGNAL( timeout() ), SLOT( updateDisplay() ) );
+ TQTimer *t = new TQTimer( this );
+ connect( t, TQT_SIGNAL( timeout() ), TQT_SLOT( updateDisplay() ) );
t->start( 1000 );
updateDisplay();
- connect( this, SIGNAL(rightButtonClicked(QMouseEvent *)), SLOT(showMenuAt(QMouseEvent *) ) );
+ connect( this, TQT_SIGNAL(rightButtonClicked(TQMouseEvent *)), TQT_SLOT(showMenuAt(TQMouseEvent *) ) );
}
KasLoadItem::~KasLoadItem()
@@ -63,10 +63,10 @@ void KasLoadItem::updateDisplay()
valuesFifteen.pop_front();
}
- setText( QString("%1").arg( valuesOne.last(), 3, 'f', 2 ) );
+ setText( TQString("%1").arg( valuesOne.last(), 3, 'f', 2 ) );
}
-void KasLoadItem::paint( QPainter *p )
+void KasLoadItem::paint( TQPainter *p )
{
double val = valuesOne.last();
double maxValue = 1.0;
@@ -95,8 +95,8 @@ void KasLoadItem::paint( QPainter *p )
KasItem::paint( p );
- QColor light = kasbar()->colorGroup().highlight();
- QColor dark = light.dark();
+ TQColor light = kasbar()->colorGroup().highlight();
+ TQColor dark = light.dark();
KPixmap pix;
pix.resize( w, h );
@@ -110,13 +110,13 @@ void KasLoadItem::paint( QPainter *p )
}
}
-void KasLoadItem::showMenuAt( QMouseEvent *ev )
+void KasLoadItem::showMenuAt( TQMouseEvent *ev )
{
hidePopup();
showMenuAt( ev->globalPos() );
}
-void KasLoadItem::showMenuAt( QPoint p )
+void KasLoadItem::showMenuAt( TQPoint p )
{
mouseLeave();
kasbar()->updateMouseOver();