summaryrefslogtreecommitdiffstats
path: root/arts/gui/kde/klevelmeter_template.h
diff options
context:
space:
mode:
Diffstat (limited to 'arts/gui/kde/klevelmeter_template.h')
-rw-r--r--arts/gui/kde/klevelmeter_template.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/arts/gui/kde/klevelmeter_template.h b/arts/gui/kde/klevelmeter_template.h
index 1b3915be..c822be40 100644
--- a/arts/gui/kde/klevelmeter_template.h
+++ b/arts/gui/kde/klevelmeter_template.h
@@ -21,7 +21,7 @@
#ifndef ARTS_KLEVELMETER_TEMPLATE_H
#define ARTS_KLEVELMETER_TEMPLATE_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <math.h>
@@ -29,13 +29,13 @@
#include "klevelmeter_impl.h"
-class KLevelMeter_Template : public QWidget, public dB2VolCalc {
+class KLevelMeter_Template : public TQWidget, public dB2VolCalc {
Q_OBJECT
public:
Arts::KLevelMeter_impl* _impl;
- KLevelMeter_Template( Arts::KLevelMeter_impl* impl, QWidget* p, long /*substyle*/, long count, Arts::Direction dir, float _dbmin, float _dbmax )
- : QWidget( p )
+ KLevelMeter_Template( Arts::KLevelMeter_impl* impl, TQWidget* p, long /*substyle*/, long count, Arts::Direction dir, float _dbmin, float _dbmax )
+ : TQWidget( p )
, dB2VolCalc( _dbmin, _dbmax )
, _impl( impl )
, _count( count )
@@ -57,8 +57,8 @@ public:
float nilline;
/// Gives the colors between green and red
- QColor color( float n ) {
- return QColor( int( ( n<=nilline )?255*( 1/nilline )*n:255 ),
+ TQColor color( float n ) {
+ return TQColor( int( ( n<=nilline )?255*( 1/nilline )*n:255 ),
int( ( n<=1 && n>nilline )?255-255*( 1/nilline )*( n-nilline ):( ( n>1 )?0:255 ) ),
0 );
}