diff options
Diffstat (limited to 'src/knemod/signalplotter.cpp')
-rw-r--r-- | src/knemod/signalplotter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/knemod/signalplotter.cpp b/src/knemod/signalplotter.cpp index 6a362a6..aa7c1f1 100644 --- a/src/knemod/signalplotter.cpp +++ b/src/knemod/signalplotter.cpp @@ -56,7 +56,7 @@ SignalPlotter::SignalPlotter( TQWidget *parent, const char *name ) // Anything smaller than this does not make sense. setMinimumSize( 16, 16 ); - tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, + setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding, false ) ); mShowVerticalLines = true; @@ -429,12 +429,12 @@ void SignalPlotter::paintEvent( TQPaintEvent* ) TQPixmap pm( w, h ); TQPainter p; - p.tqbegin( TQT_TQPAINTDEVICE(&pm), this ); + p.begin( TQT_TQPAINTDEVICE(&pm), this ); pm.fill( mBackgroundColor ); /* Draw white line along the bottom and the right side of the * widget to create a 3D like look. */ - p.setPen( TQColor( tqcolorGroup().light() ) ); + p.setPen( TQColor( colorGroup().light() ) ); p.drawLine( 0, h - 1, w - 1, h - 1 ); p.drawLine( w - 1, 0, w - 1, h - 1 ); @@ -687,14 +687,14 @@ void SignalPlotter::paintEvent( TQPaintEvent* ) top + y * ( h / mHorizontalLinesCount ) ); if ( mShowLabels && h > ( mFontSize + 1 ) * ( mHorizontalLinesCount + 1 ) && w > 60 ) { - val = TQString( "%1" ).tqarg( maxValue - y * ( range / mHorizontalLinesCount ) ); + val = TQString( "%1" ).arg( maxValue - y * ( range / mHorizontalLinesCount ) ); p.drawText( 6, top + y * ( h / mHorizontalLinesCount ) - 1, val ); } } if ( mShowLabels && h > ( mFontSize + 1 ) * ( mHorizontalLinesCount + 1 ) && w > 60 ) { - val = TQString( "%1" ).tqarg( minValue ); + val = TQString( "%1" ).arg( minValue ); p.drawText( 6, top + h - 2, val ); } } |