summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-07-09 14:00:53 (UTC)
committer harlekin <harlekin>2002-07-09 14:00:53 (UTC)
commitf9e07dc2c8e489c48debb31a6ae5afd46b77faee (patch) (side-by-side diff)
treea35a5d7eb9cf1e9f1e3f2dfb1e7086929b27636d
parent87bb55055c826b6c75d4a66a7ff6e21058cf6361 (diff)
downloadopie-f9e07dc2c8e489c48debb31a6ae5afd46b77faee.zip
opie-f9e07dc2c8e489c48debb31a6ae5afd46b77faee.tar.gz
opie-f9e07dc2c8e489c48debb31a6ae5afd46b77faee.tar.bz2
fullscreen toogle connected
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp14
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.h2
2 files changed, 11 insertions, 5 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 @@
-
+#include <qtimer.h>
#include "xinecontrol.h"
@@ -14,3 +14,3 @@ XineControl::XineControl( QObject *parent, const char *name )
connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) );
-
+ connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) );
}
@@ -32,2 +32,5 @@ void XineControl::play( const QString& fileName ) {
+ // determine if slider is shown
+ mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) );
+
// which gui (video / audio)
@@ -35,4 +38,2 @@ void XineControl::play( const QString& fileName ) {
- // determine if slider is shown
- mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) );
}
@@ -69,2 +70,7 @@ int XineControl::position() {
emit positionChanged( m_position );
+ QTimer::singleShot( 1000, this, SLOT( position ) );
+}
+
+void XineControl::setFullscreen( bool isSet ) {
+ libXine-> showVideoFullScreen( isSet);
}
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:
void pause( bool );
-
+ void setFullscreen( bool );
int currentTime();