Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 12f91a9..5cc2814 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp @@ -315,11 +315,2 @@ void AudioWidget::setToggleButton( int i, bool down ) { -void AudioWidget::paintButton( QPainter &p, int i ) { - if ( buttons[i].isDown ) { - p.drawPixmap( upperLeftOfButtonMask, buttons[i].pixDown ); - } else { - p.drawPixmap( upperLeftOfButtonMask, buttons[i].pixUp ); - } -} - - void AudioWidget::skipFor() { @@ -417,3 +408,3 @@ void AudioWidget::paintEvent( QPaintEvent * pe ) { for ( unsigned int i = 0; i < buttons.count(); i++ ) - paintButton( p, i ); + paintButton( p, buttons[ i ] ); QPainter p2( this ); @@ -423,3 +414,3 @@ void AudioWidget::paintEvent( QPaintEvent * pe ) { for ( unsigned int i = 0; i < buttons.count(); i++ ) - paintButton( p, i ); + paintButton( p, buttons[ i ] ); } |