author | simon <simon> | 2002-12-09 20:13:12 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-09 20:13:12 (UTC) |
commit | accc4e231dc34744e75d32af77eeb98f46006c27 (patch) (side-by-side diff) | |
tree | 1ee00b2439fb186f7851da602166b1571b9bc600 | |
parent | 2d2d57e3b7988f4246319cdfd0dc7fa90110db8e (diff) | |
download | opie-accc4e231dc34744e75d32af77eeb98f46006c27.zip opie-accc4e231dc34744e75d32af77eeb98f46006c27.tar.gz opie-accc4e231dc34744e75d32af77eeb98f46006c27.tar.bz2 |
- minor cleanup
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 5 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.h | 1 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 10 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 1 |
4 files changed, 2 insertions, 15 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 8e9bbf1..23d12ec 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp @@ -328,21 +328,16 @@ void AudioWidget::stopSkip() { void AudioWidget::timerEvent( QTimerEvent * ) { if ( skipDirection == +1 ) { mediaPlayerState.setPosition( mediaPlayerState.position() + 2 ); } else if ( skipDirection == -1 ) { mediaPlayerState.setPosition( mediaPlayerState.position() - 2 ); } } -void AudioWidget::showEvent( QShowEvent* ) { - QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 ); - mouseMoveEvent( &event ); -} - void AudioWidget::keyReleaseEvent( QKeyEvent *e) { switch ( e->key() ) { ////////////////////////////// Zaurus keys case Key_Home: break; case Key_F9: //activity hide(); // qDebug("Audio F9"); diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h index e2e2314..53982a1 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.h +++ b/noncore/multimedia/opieplayer2/audiowidget.h @@ -69,17 +69,16 @@ public: virtual void setDisplayType( MediaPlayerState::DisplayType displayType ); signals: void sliderMoved(long); protected: void doBlank(); void doUnblank(); - void showEvent( QShowEvent *se ); void resizeEvent( QResizeEvent *re ); void timerEvent( QTimerEvent *event ); void keyReleaseEvent( QKeyEvent *e); private slots: void skipFor(); void skipBack(); void stopSkip(); private: diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 04b09f9..4901e47 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -244,26 +244,20 @@ void VideoWidget::updateSlider( long i, long max ) { void VideoWidget::mouseReleaseEvent( QMouseEvent *event ) { if ( mediaPlayerState.isFullscreen() ) { mediaPlayerState.setFullscreen( FALSE ); makeVisible(); } MediaWidget::mouseReleaseEvent( event ); } -void VideoWidget::showEvent( QShowEvent* ) { - QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 ); - mouseMoveEvent( &event ); -} - - - void VideoWidget::backToNormal() { +void VideoWidget::backToNormal() { mediaPlayerState.setFullscreen( FALSE ); makeVisible(); - } +} void VideoWidget::makeVisible() { if ( mediaPlayerState.isFullscreen() ) { setBackgroundMode( QWidget::NoBackground ); showFullScreen(); resize( qApp->desktop()->size() ); videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index 985c094..21a4e9e 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h @@ -70,17 +70,16 @@ signals: void moreClicked(); void lessClicked(); void sliderMoved( long ); void videoResized ( const QSize &s ); protected: void resizeEvent( QResizeEvent * ); - void showEvent( QShowEvent *se ); void mouseReleaseEvent( QMouseEvent *event ); void keyReleaseEvent( QKeyEvent *e); private: // Ticker songInfo; QImage imgUp; QImage imgDn; QString skin; |