From 6599cb97da09fc05bbe6e6380c1c0bb128ecb034 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 03 Aug 2002 13:13:51 +0000 Subject: fixes some typos --- (limited to 'noncore') diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 3faeab1..7337c97 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp @@ -44,8 +44,8 @@ XineControl::XineControl( QObject *parent, const char *name ) libXine = new XINE::Lib(videoUI->vidWidget() ); connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); - connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); - connect(this, SIGNAL( postitionChanged(int position) ), mediaPlayerState, SLOT( setPosition( long p ) ) ); + connect( this, SIGNAL( positionChanged( long ) ), mediaPlayerState, SLOT( updatePosition( long ) ) ); + connect( this, SIGNAL( positionChanged( long ) ), mediaPlayerState, SLOT( setPosition( long ) ) ); connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); connect( mediaPlayerState, SIGNAL( fullscreenToggled( bool ) ), this, SLOT( setFullscreen( bool ) ) ); connect( mediaPlayerState, SIGNAL( positionChanged( long ) ), this, SLOT( seekTo( long ) ) ); @@ -78,6 +78,8 @@ void XineControl::play( const QString& fileName ) { mediaPlayerState->setIsStreaming( libXine->isSeekable() ); // which gui (video / audio) mediaPlayerState->setView( whichGui ); + length(); + position(); } @@ -107,11 +109,15 @@ void XineControl::length() { } int XineControl::position() { - m_position = (m_currentTime/m_length*100); + length(); + qDebug("M_LENGTH :" + m_length); + m_position = ( currentTime() /m_length*100); mediaPlayerState->setPosition( m_position ); + long emitPos = (long)m_position; + emit positionChanged( emitPos ); + QTimer::singleShot( 1000, this, SLOT( position() ) ); + qDebug("POSITION : " + m_position); return m_position; - emit positionChanged( m_position ); - QTimer::singleShot( 1000, this, SLOT( position ) ); } void XineControl::setFullscreen( bool isSet ) { diff --git a/noncore/multimedia/opieplayer2/xinecontrol.h b/noncore/multimedia/opieplayer2/xinecontrol.h index 47eee91..5f3d7c2 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.h +++ b/noncore/multimedia/opieplayer2/xinecontrol.h @@ -64,7 +64,7 @@ private: int m_position; signals: - void positionChanged( int position ); + void positionChanged( long position ); }; -- cgit v0.9.0.2