diff options
Diffstat (limited to 'arts/gui/kde/klevelmeter_normalbars.h')
-rw-r--r-- | arts/gui/kde/klevelmeter_normalbars.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arts/gui/kde/klevelmeter_normalbars.h b/arts/gui/kde/klevelmeter_normalbars.h index 2783e09f..5705ef5e 100644 --- a/arts/gui/kde/klevelmeter_normalbars.h +++ b/arts/gui/kde/klevelmeter_normalbars.h @@ -23,7 +23,7 @@ #include "klevelmeter_template.h" -#include <qptrlist.h> +#include <tqptrlist.h> class Bar; class QBoxLayout; @@ -31,29 +31,29 @@ class QBoxLayout; class KLevelMeter_NormalBars : public KLevelMeter_Template { Q_OBJECT public: - KLevelMeter_NormalBars( Arts::KLevelMeter_impl*, QWidget* =0, long substyle=0, long count=25, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 ); + KLevelMeter_NormalBars( Arts::KLevelMeter_impl*, TQWidget* =0, long substyle=0, long count=25, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 ); void invalue( float, float =0 ); void count( long ); long count(); - void resizeEvent( QResizeEvent* =0 ); + void resizeEvent( TQResizeEvent* =0 ); private: float _value, _peak; - QPtrList <Bar> bars; + TQPtrList <Bar> bars; // long _count; - QBoxLayout *_layout; + TQBoxLayout *_layout; }; -class Bar : public QWidget { +class Bar : public TQWidget { Q_OBJECT private: float _min, _max; - QColor _color; + TQColor _color; bool _on; public: - Bar( float min, float max, QColor color, QWidget* parent ) : QWidget( parent ), _min( min ), _max( max ), _color( color ), _on( false ) { + Bar( float min, float max, TQColor color, TQWidget* parent ) : TQWidget( parent ), _min( min ), _max( max ), _color( color ), _on( false ) { setBackgroundColor( _color.dark() ); } void setValue( float n ) { @@ -68,7 +68,7 @@ public: else setBackgroundColor( _color.dark() ); } } - void setValues( float min, float max, QColor color ) { _min = min; _max = max; _color = color; on( _on ); } + void setValues( float min, float max, TQColor color ) { _min = min; _max = max; _color = color; on( _on ); } }; #endif |