diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/gui/kde/klevelmeter_normalbars.h | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 |