summaryrefslogtreecommitdiff
path: root/noncore/multimedia
Unidiff
Diffstat (limited to 'noncore/multimedia') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index a3d34f4..2cb1385 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -376,6 +376,7 @@ void AudioWidget::toggleButton( int i ) {
376void AudioWidget::paintButton( QPainter *p, int i ) { 376void AudioWidget::paintButton( QPainter *p, int i ) {
377 if ( audioButtons[i].isDown ) 377 if ( audioButtons[i].isDown ) {
378 p->drawPixmap( xoff, yoff, *buttonPixDown[i] ); 378 p->drawPixmap( xoff, yoff, *buttonPixDown[i] );
379 else 379 } else {
380 p->drawPixmap( xoff, yoff, *buttonPixUp[i] ); 380 p->drawPixmap( xoff, yoff, *buttonPixUp[i] );
381 }
381} 382}
@@ -414,4 +415,3 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
414 if ( event->state() == QMouseEvent::LeftButton ) { 415 if ( event->state() == QMouseEvent::LeftButton ) {
415 416 // The test to see if the mouse click is inside the button or not
416 // The test to see if the mouse click is inside the button or not
417 int x = event->pos().x() - xoff; 417 int x = event->pos().x() - xoff;
@@ -420,6 +420,4 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
420 bool isOnButton = ( x > 0 && y > 0 && x < imgButtonMask->width() 420 bool isOnButton = ( x > 0 && y > 0 && x < imgButtonMask->width()
421 && y < imgButtonMask->height() && imgButtonMask->pixelIndex( x, y ) == i + 1 ); 421 && y < imgButtonMask->height()
422 422 && imgButtonMask->pixelIndex( x, y ) == i + 1 );
423 if ( isOnButton && i == AudioVolumeUp )
424 qDebug("on up");
425 423
@@ -428,2 +426,3 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
428 toggleButton(i); 426 toggleButton(i);
427
429 switch (i) { 428 switch (i) {