author | harlekin <harlekin> | 2002-08-15 20:51:11 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-15 20:51:11 (UTC) |
commit | be99f951c39d19a6e9923103434afdb293741d35 (patch) (unidiff) | |
tree | 4fe4d6cc51eee0bbdd53c9b353624d104929f08b | |
parent | 157b5b1209b656960fc0b27fc077eb36a77b2c3f (diff) | |
download | opie-be99f951c39d19a6e9923103434afdb293741d35.zip opie-be99f951c39d19a6e9923103434afdb293741d35.tar.gz opie-be99f951c39d19a6e9923103434afdb293741d35.tar.bz2 |
click in fullscreen leeds to going back to the normal videowidget now
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.cpp | 2 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 13 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 1 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinevideowidget.cpp | 10 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinevideowidget.h | 1 |
5 files changed, 19 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp index 93819f2..22afe19 100644 --- a/noncore/multimedia/opieplayer2/mediaplayer.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp | |||
@@ -73,3 +73,3 @@ void MediaPlayer::setPlaying( bool play ) { | |||
73 | if ( !play ) { | 73 | if ( !play ) { |
74 | //mediaPlayerState->setPaused( TRUE ); | 74 | // mediaPlayerState->setPaused( FALSE ); |
75 | return; | 75 | return; |
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 238770b..c2080e6 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -86,3 +86,5 @@ QWidget( parent, name, f ), scaledWidth( 0 ), scaledHeight( 0 ) { | |||
86 | videoFrame = new XineVideoWidget ( this, "Video frame" ); | 86 | videoFrame = new XineVideoWidget ( this, "Video frame" ); |
87 | |||
87 | connect ( videoFrame, SIGNAL( videoResized ( const QSize & )), this, SIGNAL( videoResized ( const QSize & ))); | 88 | connect ( videoFrame, SIGNAL( videoResized ( const QSize & )), this, SIGNAL( videoResized ( const QSize & ))); |
89 | connect ( videoFrame, SIGNAL( clicked () ), this, SLOT ( backToNormal() ) ); | ||
88 | 90 | ||
@@ -345,4 +347,3 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event ) { | |||
345 | } else { | 347 | } else { |
346 | // setToggleButton( i, TRUE ); | 348 | return; |
347 | // mediaPlayerState->setPlaying( videoButtons[i].isDown ); | ||
348 | } | 349 | } |
@@ -380,2 +381,7 @@ void VideoWidget::showEvent( QShowEvent* ) { | |||
380 | 381 | ||
382 | void VideoWidget::backToNormal() { | ||
383 | mediaPlayerState->setFullscreen( FALSE ); | ||
384 | makeVisible(); | ||
385 | } | ||
386 | |||
381 | void VideoWidget::makeVisible() { | 387 | void VideoWidget::makeVisible() { |
@@ -387,2 +393,3 @@ void VideoWidget::makeVisible() { | |||
387 | videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); | 393 | videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); |
394 | |||
388 | } else { | 395 | } else { |
@@ -391,3 +398,3 @@ void VideoWidget::makeVisible() { | |||
391 | slider->show(); | 398 | slider->show(); |
392 | videoFrame->setGeometry( QRect( 10, 20, 220, 160 ) ); | 399 | videoFrame->setGeometry( QRect( 0, 30, 240, 170 ) ); |
393 | qApp->processEvents(); | 400 | qApp->processEvents(); |
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index b35558b..990fa5f 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h | |||
@@ -68,2 +68,3 @@ public slots: | |||
68 | void makeVisible(); | 68 | void makeVisible(); |
69 | void backToNormal(); | ||
69 | void setPosition( long ); | 70 | void setPosition( long ); |
diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.cpp b/noncore/multimedia/opieplayer2/xinevideowidget.cpp index d65006b..3e28e54 100644 --- a/noncore/multimedia/opieplayer2/xinevideowidget.cpp +++ b/noncore/multimedia/opieplayer2/xinevideowidget.cpp | |||
@@ -251,5 +251,6 @@ void XineVideoWidget::mousePressEvent ( QMouseEvent *me ) | |||
251 | if ( p ) { | 251 | if ( p ) { |
252 | QMouseEvent pme ( QEvent::MouseButtonPress, mapToParent ( me-> pos ( )), me-> globalPos ( ), me-> button ( ), me-> state ( )); | 252 | // QMouseEvent pme ( QEvent::MouseButtonPress, mapToParent ( me-> pos ( )), me-> globalPos ( ), me-> button ( ), me-> state ( )); |
253 | 253 | ||
254 | QApplication::sendEvent ( p, &pme ); | 254 | // QApplication::sendEvent ( p, &pme ); |
255 | // emit clicked(); | ||
255 | } | 256 | } |
@@ -262,5 +263,6 @@ void XineVideoWidget::mouseReleaseEvent ( QMouseEvent *me ) | |||
262 | if ( p ) { | 263 | if ( p ) { |
263 | QMouseEvent pme ( QEvent::MouseButtonRelease, mapToParent ( me-> pos ( )), me-> globalPos ( ), me-> button ( ), me-> state ( )); | 264 | // QMouseEvent pme ( QEvent::MouseButtonRelease, mapToParent ( me-> pos ( )), me-> globalPos ( ), me-> button ( ), me-> state ( )); |
264 | 265 | ||
265 | QApplication::sendEvent ( p, &pme ); | 266 | // QApplication::sendEvent ( p, &pme ); |
267 | emit clicked(); | ||
266 | } | 268 | } |
diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.h b/noncore/multimedia/opieplayer2/xinevideowidget.h index 2fc627d..c5101da 100644 --- a/noncore/multimedia/opieplayer2/xinevideowidget.h +++ b/noncore/multimedia/opieplayer2/xinevideowidget.h | |||
@@ -58,2 +58,3 @@ protected: | |||
58 | signals: | 58 | signals: |
59 | void clicked(); | ||
59 | void videoResized ( const QSize &s ); | 60 | void videoResized ( const QSize &s ); |