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_firebars.cpp | |
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_firebars.cpp')
-rw-r--r-- | arts/gui/kde/klevelmeter_firebars.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arts/gui/kde/klevelmeter_firebars.cpp b/arts/gui/kde/klevelmeter_firebars.cpp index 83d93d3c..9a78804c 100644 --- a/arts/gui/kde/klevelmeter_firebars.cpp +++ b/arts/gui/kde/klevelmeter_firebars.cpp @@ -21,16 +21,16 @@ #include "klevelmeter_firebars.h" #include <kdebug.h> -#include <qpainter.h> -#include <qpixmap.h> +#include <tqpainter.h> +#include <tqpixmap.h> -KLevelMeter_FireBars_private::KLevelMeter_FireBars_private( KLevelMeter_FireBars* p, const char* n ) : QWidget( p,n ) { +KLevelMeter_FireBars_private::KLevelMeter_FireBars_private( KLevelMeter_FireBars* p, const char* n ) : TQWidget( p,n ) { _parent = p; - _pixmap = new QPixmap( 0,0 ); -// setPaletteBackgroundColor( QColor( 0,0,255 ) ); + _pixmap = new TQPixmap( 0,0 ); +// setPaletteBackgroundColor( TQColor( 0,0,255 ) ); } -void KLevelMeter_FireBars_private::paintEvent( QPaintEvent* ) { - QPainter p; +void KLevelMeter_FireBars_private::paintEvent( TQPaintEvent* ) { + TQPainter p; if ( _pixmap->size() != this->size() ) { _pixmap->resize( this->size() ); p.begin( _pixmap ); @@ -55,15 +55,15 @@ kdDebug() << k_funcinfo << dir << endl; } p.begin( this ); p.translate( 0,0 ); - p.drawPixmap( QPoint( 0,0 ), *_pixmap ); + p.drawPixmap( TQPoint( 0,0 ), *_pixmap ); p.end(); } -KLevelMeter_FireBars::KLevelMeter_FireBars( Arts::KLevelMeter_impl* impl, QWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) { -//kdDebug()<<"KLevelMeter_FireBars::KLevelMeter_FireBars( Arts::KLevelMeter_impl* "<<impl<<", QWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl; +KLevelMeter_FireBars::KLevelMeter_FireBars( Arts::KLevelMeter_impl* impl, TQWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) { +//kdDebug()<<"KLevelMeter_FireBars::KLevelMeter_FireBars( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl; this->setMinimumSize( 5, 5 ); _bar = new KLevelMeter_FireBars_private( this, 0 ); - _peakwidget = new QWidget( this ); + _peakwidget = new TQWidget( this ); _peakwidget->resize( size() ); _peakwidget->setPaletteBackgroundColor( color( 1 ) ); _peakwidget->hide(); @@ -94,10 +94,10 @@ void KLevelMeter_FireBars::invalue( float n, float p ) { repaint(); } -void KLevelMeter_FireBars::paintEvent( QPaintEvent* ) { - QPainter p( this ); +void KLevelMeter_FireBars::paintEvent( TQPaintEvent* ) { + TQPainter p( this ); //p.setPen( NoPen ); - p.setPen( QColor( 0,0,255 ) ); + p.setPen( TQColor( 0,0,255 ) ); // PeakBar if ( _peak > 1.0/1000 ) { if ( _dir == Arts::BottomToTop || _dir == Arts::TopToBottom ) { @@ -117,8 +117,8 @@ void KLevelMeter_FireBars::paintEvent( QPaintEvent* ) { /** Planned feature: a little Tooltip showing the actual value of the volume in deziBel and perhaps as linear scaleFactor */ -void KLevelMeter_FireBars::mouseMoveEvent( QMouseEvent* /*qme*/ ) { -//kdDebug()<<"KLevelMeter_FireBars::mouseMoveEvent(QMouseEvent* "<<qme<<" )"<<endl; +void KLevelMeter_FireBars::mouseMoveEvent( TQMouseEvent* /*qme*/ ) { +//kdDebug()<<"KLevelMeter_FireBars::mouseMoveEvent(TQMouseEvent* "<<qme<<" )"<<endl; } #include <klevelmeter_firebars.moc> |