summaryrefslogtreecommitdiffstats
path: root/kasteroids/ledmeter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kasteroids/ledmeter.cpp')
-rw-r--r--kasteroids/ledmeter.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kasteroids/ledmeter.cpp b/kasteroids/ledmeter.cpp
index 3df87b8f..1d807d18 100644
--- a/kasteroids/ledmeter.cpp
+++ b/kasteroids/ledmeter.cpp
@@ -4,11 +4,11 @@
* Part of the KDE project
*/
-#include <qpainter.h>
+#include <tqpainter.h>
#include "ledmeter.h"
#include "ledmeter.moc"
-KALedMeter::KALedMeter( QWidget *parent ) : QFrame( parent )
+KALedMeter::KALedMeter( TQWidget *parent ) : TQFrame( parent )
{
mCRanges.setAutoDelete( true );
mRange = 100;
@@ -53,7 +53,7 @@ void KALedMeter::setValue( int v )
}
}
-void KALedMeter::addColorRange( int pc, const QColor &c )
+void KALedMeter::addColorRange( int pc, const TQColor &c )
{
ColorRange *cr = new ColorRange;
cr->mPc = pc;
@@ -62,21 +62,21 @@ void KALedMeter::addColorRange( int pc, const QColor &c )
calcColorRanges();
}
-void KALedMeter::resizeEvent( QResizeEvent *e )
+void KALedMeter::resizeEvent( TQResizeEvent *e )
{
- QFrame::resizeEvent( e );
+ TQFrame::resizeEvent( e );
int w = ( width() - frameWidth() - 2 ) / mCount * mCount;
w += frameWidth() + 2;
- setFrameRect( QRect( 0, 0, w, height() ) );
+ setFrameRect( TQRect( 0, 0, w, height() ) );
}
-void KALedMeter::drawContents( QPainter *p )
+void KALedMeter::drawContents( TQPainter *p )
{
- QRect b = contentsRect();
+ TQRect b = contentsRect();
unsigned cidx = 0;
int ncol = mCount;
- QColor col = colorGroup().foreground();
+ TQColor col = colorGroup().foreground();
if ( !mCRanges.isEmpty() )
{