author | harlekin <harlekin> | 2002-11-10 16:43:22 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-11-10 16:43:22 (UTC) |
commit | 5a8660a4089fa2160da47e2a4d63baea431b48b1 (patch) (unidiff) | |
tree | 4d4e7edb3c8fe6dc741fb19c6f5587093f7d4a57 | |
parent | cb4821802897bbf6e06be3b2608656e05db68b96 (diff) | |
download | opie-5a8660a4089fa2160da47e2a4d63baea431b48b1.zip opie-5a8660a4089fa2160da47e2a4d63baea431b48b1.tar.gz opie-5a8660a4089fa2160da47e2a4d63baea431b48b1.tar.bz2 |
update
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 21 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 1 |
2 files changed, 11 insertions, 11 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index a847605..c643273 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -141,7 +141,6 @@ QWidget( parent, name, f ), scaledWidth( 0 ), scaledHeight( 0 ) { | |||
141 | connect( mediaPlayerState, SIGNAL( lengthChanged(long) ), this, SLOT( setLength(long) ) ); | 141 | connect( mediaPlayerState, SIGNAL( lengthChanged(long) ), this, SLOT( setLength(long) ) ); |
142 | connect( mediaPlayerState, SIGNAL( viewChanged(char) ), this, SLOT( setView(char) ) ); | 142 | connect( mediaPlayerState, SIGNAL( viewChanged(char) ), this, SLOT( setView(char) ) ); |
143 | connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); | 143 | connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); |
144 | connect( mediaPlayerState, SIGNAL( isSeekableToggled( bool ) ), this, SLOT( setSeekable( bool ) ) ); | ||
145 | 144 | ||
146 | setLength( mediaPlayerState->length() ); | 145 | setLength( mediaPlayerState->length() ); |
147 | setPosition( mediaPlayerState->position() ); | 146 | setPosition( mediaPlayerState->position() ); |
@@ -381,8 +380,14 @@ void VideoWidget::makeVisible() { | |||
381 | setBackgroundMode( QWidget::NoBackground ); | 380 | setBackgroundMode( QWidget::NoBackground ); |
382 | showFullScreen(); | 381 | showFullScreen(); |
383 | resize( qApp->desktop()->size() ); | 382 | resize( qApp->desktop()->size() ); |
384 | slider->hide(); | ||
385 | videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); | 383 | videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); |
384 | |||
385 | slider->hide(); | ||
386 | disconnect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); | ||
387 | disconnect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) ); | ||
388 | disconnect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); | ||
389 | disconnect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); | ||
390 | |||
386 | } else { | 391 | } else { |
387 | showNormal(); | 392 | showNormal(); |
388 | showMaximized(); | 393 | showMaximized(); |
@@ -397,14 +402,8 @@ void VideoWidget::makeVisible() { | |||
397 | } else { | 402 | } else { |
398 | videoFrame->setGeometry( QRect( 0, 30, 240, 170 ) ); | 403 | videoFrame->setGeometry( QRect( 0, 30, 240, 170 ) ); |
399 | } | 404 | } |
400 | } | ||
401 | } | ||
402 | |||
403 | |||
404 | void VideoWidget::setSeekable( bool isSeekable ) { | ||
405 | 405 | ||
406 | if ( !isSeekable || mediaPlayerState->fullscreen() ) { | 406 | if ( !mediaPlayerState->seekable() ) { |
407 | qDebug("<<<<<<<<<<<<<<file is STREAMING>>>>>>>>>>>>>>>>>>>"); | ||
408 | if( !slider->isHidden()) { | 407 | if( !slider->isHidden()) { |
409 | slider->hide(); | 408 | slider->hide(); |
410 | } | 409 | } |
@@ -420,6 +419,9 @@ void VideoWidget::setSeekable( bool isSeekable ) { | |||
420 | connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); | 419 | connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); |
421 | } | 420 | } |
422 | } | 421 | } |
422 | } | ||
423 | |||
424 | |||
423 | 425 | ||
424 | 426 | ||
425 | void VideoWidget::paintEvent( QPaintEvent * pe) { | 427 | void VideoWidget::paintEvent( QPaintEvent * pe) { |
@@ -455,7 +457,6 @@ void VideoWidget::closeEvent( QCloseEvent* ) { | |||
455 | } | 457 | } |
456 | 458 | ||
457 | 459 | ||
458 | |||
459 | void VideoWidget::keyReleaseEvent( QKeyEvent *e) { | 460 | void VideoWidget::keyReleaseEvent( QKeyEvent *e) { |
460 | switch ( e->key() ) { | 461 | switch ( e->key() ) { |
461 | ////////////////////////////// Zaurus keys | 462 | ////////////////////////////// Zaurus keys |
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index fd02805..990fa5f 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h | |||
@@ -69,7 +69,6 @@ public slots: | |||
69 | void backToNormal(); | 69 | void backToNormal(); |
70 | void setPosition( long ); | 70 | void setPosition( long ); |
71 | void setLength( long ); | 71 | void setLength( long ); |
72 | void setSeekable( bool ); | ||
73 | void setView( char ); | 72 | void setView( char ); |
74 | 73 | ||
75 | signals: | 74 | signals: |