Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 8c7e614..ef606ab 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -338,13 +338,13 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) { | |||
338 | if ( event->state() == QMouseEvent::LeftButton ) { | 338 | if ( event->state() == QMouseEvent::LeftButton ) { |
339 | // The test to see if the mouse click is inside the button or not | 339 | // The test to see if the mouse click is inside the button or not |
340 | bool isOnButton = isOverButton( event->pos() - upperLeftOfButtonMask, i ); | 340 | bool isOnButton = isOverButton( event->pos() - upperLeftOfButtonMask, i ); |
341 | 341 | ||
342 | if ( isOnButton && !buttons[i].isHeld ) { | 342 | if ( isOnButton && !buttons[i].isHeld ) { |
343 | buttons[i].isHeld = TRUE; | 343 | buttons[i].isHeld = TRUE; |
344 | toggleButton(i); | 344 | toggleButton( buttons[ i ] ); |
345 | switch (i) { | 345 | switch (i) { |
346 | case VolumeUp: | 346 | case VolumeUp: |
347 | emit moreClicked(); | 347 | emit moreClicked(); |
348 | return; | 348 | return; |
349 | case VolumeDown: | 349 | case VolumeDown: |
350 | emit lessClicked(); | 350 | emit lessClicked(); |
@@ -355,19 +355,19 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) { | |||
355 | case Back: | 355 | case Back: |
356 | emit backClicked(); | 356 | emit backClicked(); |
357 | return; | 357 | return; |
358 | } | 358 | } |
359 | } else if ( !isOnButton && buttons[i].isHeld ) { | 359 | } else if ( !isOnButton && buttons[i].isHeld ) { |
360 | buttons[i].isHeld = FALSE; | 360 | buttons[i].isHeld = FALSE; |
361 | toggleButton(i); | 361 | toggleButton( buttons[ i ] ); |
362 | } | 362 | } |
363 | } else { | 363 | } else { |
364 | if ( buttons[i].isHeld ) { | 364 | if ( buttons[i].isHeld ) { |
365 | buttons[i].isHeld = FALSE; | 365 | buttons[i].isHeld = FALSE; |
366 | if ( buttons[i].type != ToggleButton ) { | 366 | if ( buttons[i].type != ToggleButton ) { |
367 | setToggleButton( i, FALSE ); | 367 | setToggleButton( buttons[ i ], FALSE ); |
368 | } | 368 | } |
369 | qDebug("mouseEvent %d", i); | 369 | qDebug("mouseEvent %d", i); |
370 | handleCommand( static_cast<Command>( i ), buttons[ i ].isDown ); | 370 | handleCommand( static_cast<Command>( i ), buttons[ i ].isDown ); |
371 | } | 371 | } |
372 | } | 372 | } |
373 | } | 373 | } |