author | simon <simon> | 2002-12-02 18:37:23 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 18:37:23 (UTC) |
commit | 54665278a9b7d703deb73ede0d74d3948c265b39 (patch) (unidiff) | |
tree | 82a047d0c948f8a1f917a8fb430a69dbf2968e25 /noncore/multimedia/opieplayer2/videowidget.cpp | |
parent | cf6d2e032faac6fbaeb9c5730767fc25021045fe (diff) | |
download | opie-54665278a9b7d703deb73ede0d74d3948c265b39.zip opie-54665278a9b7d703deb73ede0d74d3948c265b39.tar.gz opie-54665278a9b7d703deb73ede0d74d3948c265b39.tar.bz2 |
- converted to MediaPlayerState::DisplayType
Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index ff3f5f7..9ce2b57 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -139,7 +139,7 @@ QWidget( parent, name, f ), scaledWidth( 0 ), scaledHeight( 0 ) { | |||
139 | resizeEvent( NULL ); | 139 | resizeEvent( NULL ); |
140 | 140 | ||
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( displayTypeChanged(MediaPlayerState::DisplayType) ), this, SLOT( setDisplayType(MediaPlayerState::DisplayType) ) ); |
143 | connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); | 143 | connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); |
144 | 144 | ||
145 | setLength( mediaPlayerState->length() ); | 145 | setLength( mediaPlayerState->length() ); |
@@ -239,16 +239,17 @@ void VideoWidget::setLength( long max ) { | |||
239 | updateSlider( mediaPlayerState->position(), max ); | 239 | updateSlider( mediaPlayerState->position(), max ); |
240 | } | 240 | } |
241 | 241 | ||
242 | void VideoWidget::setView( char view ) { | 242 | void VideoWidget::setDisplayType( MediaPlayerState::DisplayType displayType ) |
243 | 243 | { | |
244 | if ( view == 'v' ) { | 244 | if ( displayType == MediaPlayerState::Video ) { |
245 | makeVisible(); | 245 | makeVisible(); |
246 | } else { | 246 | return; |
247 | // Effectively blank the view next time we show it so it looks nicer | ||
248 | scaledWidth = 0; | ||
249 | scaledHeight = 0; | ||
250 | hide(); | ||
251 | } | 247 | } |
248 | |||
249 | // Effectively blank the view next time we show it so it looks nicer | ||
250 | scaledWidth = 0; | ||
251 | scaledHeight = 0; | ||
252 | hide(); | ||
252 | } | 253 | } |
253 | 254 | ||
254 | void VideoWidget::updateSlider( long i, long max ) { | 255 | void VideoWidget::updateSlider( long i, long max ) { |