summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-08-03 13:13:51 (UTC)
committer harlekin <harlekin>2002-08-03 13:13:51 (UTC)
commit6599cb97da09fc05bbe6e6380c1c0bb128ecb034 (patch) (side-by-side diff)
treefb8401af472525ae431ccde87da3c1b1a083cb0e
parente97e6d869d0d3cb971a53f5a9ceacc1c93fcb3e0 (diff)
downloadopie-6599cb97da09fc05bbe6e6380c1c0bb128ecb034.zip
opie-6599cb97da09fc05bbe6e6380c1c0bb128ecb034.tar.gz
opie-6599cb97da09fc05bbe6e6380c1c0bb128ecb034.tar.bz2
fixes some typos
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp16
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.h2
2 files changed, 12 insertions, 6 deletions
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
@@ -45,6 +45,6 @@ XineControl::XineControl( QObject *parent, const char *name )
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 ) ) );
@@ -79,4 +79,6 @@ void XineControl::play( const QString& fileName ) {
// which gui (video / audio)
mediaPlayerState->setView( whichGui );
+ length();
+ position();
}
@@ -108,9 +110,13 @@ 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 ) );
}
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
@@ -65,5 +65,5 @@ private:
signals:
- void positionChanged( int position );
+ void positionChanged( long position );
};