author | harlekin <harlekin> | 2002-07-09 14:00:53 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-09 14:00:53 (UTC) |
commit | f9e07dc2c8e489c48debb31a6ae5afd46b77faee (patch) (unidiff) | |
tree | a35a5d7eb9cf1e9f1e3f2dfb1e7086929b27636d /noncore/multimedia | |
parent | 87bb55055c826b6c75d4a66a7ff6e21058cf6361 (diff) | |
download | opie-f9e07dc2c8e489c48debb31a6ae5afd46b77faee.zip opie-f9e07dc2c8e489c48debb31a6ae5afd46b77faee.tar.gz opie-f9e07dc2c8e489c48debb31a6ae5afd46b77faee.tar.bz2 |
fullscreen toogle connected
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 16 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.h | 2 |
2 files changed, 12 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 7407e4e..497636a 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -1,2 +1,2 @@ | |||
1 | 1 | #include <qtimer.h> | |
2 | #include "xinecontrol.h" | 2 | #include "xinecontrol.h" |
@@ -14,3 +14,3 @@ XineControl::XineControl( QObject *parent, const char *name ) | |||
14 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); | 14 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); |
15 | 15 | connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); | |
16 | } | 16 | } |
@@ -32,7 +32,8 @@ void XineControl::play( const QString& fileName ) { | |||
32 | 32 | ||
33 | // which gui (video / audio) | ||
34 | mediaPlayerState->setView( whichGui ); | ||
35 | |||
36 | // determine if slider is shown | 33 | // determine if slider is shown |
37 | mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); | 34 | mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); |
35 | |||
36 | // which gui (video / audio) | ||
37 | mediaPlayerState->setView( whichGui ); | ||
38 | |||
38 | } | 39 | } |
@@ -69,2 +70,7 @@ int XineControl::position() { | |||
69 | emit positionChanged( m_position ); | 70 | emit positionChanged( m_position ); |
71 | QTimer::singleShot( 1000, this, SLOT( position ) ); | ||
72 | } | ||
73 | |||
74 | void XineControl::setFullscreen( bool isSet ) { | ||
75 | libXine-> showVideoFullScreen( isSet); | ||
70 | } | 76 | } |
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.h b/noncore/multimedia/opieplayer2/xinecontrol.h index aab00cd..145cd0c 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.h +++ b/noncore/multimedia/opieplayer2/xinecontrol.h | |||
@@ -18,3 +18,3 @@ public slots: | |||
18 | void pause( bool ); | 18 | void pause( bool ); |
19 | 19 | void setFullscreen( bool ); | |
20 | int currentTime(); | 20 | int currentTime(); |