summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index 2a345e3..2300630 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -191,32 +191,33 @@ void VideoWidget::updateSlider( long i, long max ) {
191 slider->setMaxValue( width ); 191 slider->setMaxValue( width );
192 } 192 }
193 } 193 }
194} 194}
195 195
196void VideoWidget::mouseReleaseEvent( QMouseEvent *event ) { 196void VideoWidget::mouseReleaseEvent( QMouseEvent *event ) {
197 if ( mediaPlayerState.isFullscreen() ) { 197 if ( mediaPlayerState.isFullscreen() ) {
198 mediaPlayerState.setFullscreen( FALSE ); 198 mediaPlayerState.setFullscreen( FALSE );
199 makeVisible(); 199 makeVisible();
200 } 200 }
201 MediaWidget::mouseReleaseEvent( event ); 201 MediaWidget::mouseReleaseEvent( event );
202} 202}
203 203
204void VideoWidget::backToNormal() { 204void VideoWidget::backToNormal() {
205 mediaPlayerState.setFullscreen( FALSE ); 205 mediaPlayerState.setFullscreen( FALSE );
206 makeVisible(); 206 makeVisible();
207 setToggleButton( FullScreen, false );
207} 208}
208 209
209void VideoWidget::makeVisible() { 210void VideoWidget::makeVisible() {
210 if ( mediaPlayerState.isFullscreen() ) { 211 if ( mediaPlayerState.isFullscreen() ) {
211 setBackgroundMode( QWidget::NoBackground ); 212 setBackgroundMode( QWidget::NoBackground );
212 showFullScreen(); 213 showFullScreen();
213 resize( qApp->desktop()->size() ); 214 resize( qApp->desktop()->size() );
214 videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); 215 videoFrame-> setGeometry ( 0, 0, width ( ), height ( ));
215 216
216 slider->hide(); 217 slider->hide();
217 disconnect( &mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); 218 disconnect( &mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) );
218 disconnect( &mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) ); 219 disconnect( &mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) );
219 disconnect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); 220 disconnect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) );
220 disconnect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); 221 disconnect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) );
221 222
222 } else { 223 } else {