Diffstat (limited to 'noncore/multimedia/opieplayer2') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 13 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 9 |
2 files changed, 21 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 132a911..442864f 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -327,2 +327,3 @@ void AudioWidget::setView( char view ) { | |||
327 | } | 327 | } |
328 | qApp->processEvents(); | ||
328 | } | 329 | } |
@@ -572,3 +573,13 @@ void AudioWidget::keyReleaseEvent( QKeyEvent *e) | |||
572 | break; | 573 | break; |
573 | case Key_Escape: | 574 | case Key_Escape: { |
575 | #if defined(QT_QWS_IPAQ) | ||
576 | if( mediaPlayerState->isPaused ) { | ||
577 | setToggleButton( i, FALSE ); | ||
578 | mediaPlayerState->setPaused( FALSE ); | ||
579 | } else if( !mediaPlayerState->isPaused ) { | ||
580 | setToggleButton( i, TRUE ); | ||
581 | mediaPlayerState->setPaused( TRUE ); | ||
582 | } | ||
583 | #endif | ||
584 | } | ||
574 | break; | 585 | break; |
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 0521419..5a69bf5 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -480,2 +480,11 @@ void VideoWidget::keyReleaseEvent( QKeyEvent *e) { | |||
480 | case Key_Escape: | 480 | case Key_Escape: |
481 | #if defined(QT_QWS_IPAQ) | ||
482 | if( mediaPlayerState->isPaused ) { | ||
483 | setToggleButton( i, FALSE ); | ||
484 | mediaPlayerState->setPaused( FALSE ); | ||
485 | } else if( !mediaPlayerState->isPaused ) { | ||
486 | setToggleButton( i, TRUE ); | ||
487 | mediaPlayerState->setPaused( TRUE ); | ||
488 | } | ||
489 | #endif | ||
481 | break; | 490 | break; |