-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 @@ -324,8 +324,9 @@ void AudioWidget::setView( char view ) { } else { killTimers(); hide(); } + qApp->processEvents(); } static QString timeAsString( long length ) { @@ -569,9 +570,19 @@ void AudioWidget::keyReleaseEvent( QKeyEvent *e) // toggleButton(4); mediaPlayerState->setPrev(); // toggleButton(4); break; - case Key_Escape: + case Key_Escape: { +#if defined(QT_QWS_IPAQ) + if( mediaPlayerState->isPaused ) { + setToggleButton( i, FALSE ); + mediaPlayerState->setPaused( FALSE ); + } else if( !mediaPlayerState->isPaused ) { + setToggleButton( i, TRUE ); + mediaPlayerState->setPaused( TRUE ); + } +#endif + } 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 @@ -477,8 +477,17 @@ void VideoWidget::keyReleaseEvent( QKeyEvent *e) { case Key_Left: mediaPlayerState->setPrev(); break; case Key_Escape: +#if defined(QT_QWS_IPAQ) + if( mediaPlayerState->isPaused ) { + setToggleButton( i, FALSE ); + mediaPlayerState->setPaused( FALSE ); + } else if( !mediaPlayerState->isPaused ) { + setToggleButton( i, TRUE ); + mediaPlayerState->setPaused( TRUE ); + } +#endif break; }; } |