summaryrefslogtreecommitdiffstats
path: root/arts/gui/kde/klevelmeter_small.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/gui/kde/klevelmeter_small.cpp')
-rw-r--r--arts/gui/kde/klevelmeter_small.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/arts/gui/kde/klevelmeter_small.cpp b/arts/gui/kde/klevelmeter_small.cpp
index 1c9c4817..c74dfa44 100644
--- a/arts/gui/kde/klevelmeter_small.cpp
+++ b/arts/gui/kde/klevelmeter_small.cpp
@@ -21,26 +21,26 @@
#include "klevelmeter_small.h"
#include <kdebug.h>
-#include <qpainter.h>
+#include <tqpainter.h>
-KLevelMeter_Small::KLevelMeter_Small( 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_Small::KLevelMeter_Small( Arts::KLevelMeter_impl* "<<impl<<", QWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
+KLevelMeter_Small::KLevelMeter_Small( 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_Small::KLevelMeter_Small( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
}
void KLevelMeter_Small::invalue( float n, float p ) {
//kdDebug()<<"KLevelMeter_Small::invalue( float "<<n<<", float "<<p<<" )"<<endl;
_peak = amptondb( p );
if ( n ) this->setBackgroundColor( color( amptondb( n ) ) );
- else this->setBackgroundColor( QColor( 0,255,0 ).dark() );
+ else this->setBackgroundColor( TQColor( 0,255,0 ).dark() );
}
-void KLevelMeter_Small::paintEvent( QPaintEvent* /*qpe*/ ) {
-//kdDebug()<<"KLevelMeter_Small::paintEvent( QPaintEvent* "<<qpe<<" )"<<endl;
+void KLevelMeter_Small::paintEvent( TQPaintEvent* /*qpe*/ ) {
+//kdDebug()<<"KLevelMeter_Small::paintEvent( TQPaintEvent* "<<qpe<<" )"<<endl;
if ( _peak && _peak <= 1.0 ) {
- QPainter p( this );
- //p.setPen( QColor( 0,0,0 ) );
- QColor bgcolor = this->paletteBackgroundColor();
- p.setPen( QColor( 255-bgcolor.red(), 255-bgcolor.green(), 255-bgcolor.blue() ) );
+ TQPainter p( this );
+ //p.setPen( TQColor( 0,0,0 ) );
+ TQColor bgcolor = this->paletteBackgroundColor();
+ p.setPen( TQColor( 255-bgcolor.red(), 255-bgcolor.green(), 255-bgcolor.blue() ) );
if ( _dir==Arts::BottomToTop || _dir==Arts::TopToBottom ) {
if ( _dir==Arts::BottomToTop ) p.translate( 0, rect().bottom() );
int h = int( this->height() * _peak );