summaryrefslogtreecommitdiff
path: root/noncore
authorharlekin <harlekin>2002-08-03 13:13:51 (UTC)
committer harlekin <harlekin>2002-08-03 13:13:51 (UTC)
commit6599cb97da09fc05bbe6e6380c1c0bb128ecb034 (patch) (unidiff)
treefb8401af472525ae431ccde87da3c1b1a083cb0e /noncore
parente97e6d869d0d3cb971a53f5a9ceacc1c93fcb3e0 (diff)
downloadopie-6599cb97da09fc05bbe6e6380c1c0bb128ecb034.zip
opie-6599cb97da09fc05bbe6e6380c1c0bb128ecb034.tar.gz
opie-6599cb97da09fc05bbe6e6380c1c0bb128ecb034.tar.bz2
fixes some typos
Diffstat (limited to 'noncore') (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
@@ -46,4 +46,4 @@ XineControl::XineControl( QObject *parent, const char *name )
46 connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) ); 46 connect( mediaPlayerState, SIGNAL( pausedToggled(bool) ), this, SLOT( pause(bool) ) );
47 connect( this, SIGNAL( positionChanged( int position ) ), mediaPlayerState, SLOT( updatePosition( long p ) ) ); 47 connect( this, SIGNAL( positionChanged( long ) ), mediaPlayerState, SLOT( updatePosition( long ) ) );
48 connect(this, SIGNAL( postitionChanged(int position) ), mediaPlayerState, SLOT( setPosition( long p ) ) ); 48 connect( this, SIGNAL( positionChanged( long ) ), mediaPlayerState, SLOT( setPosition( long ) ) );
49 connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) ); 49 connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), this, SLOT( stop( bool ) ) );
@@ -80,2 +80,4 @@ void XineControl::play( const QString& fileName ) {
80 mediaPlayerState->setView( whichGui ); 80 mediaPlayerState->setView( whichGui );
81 length();
82 position();
81 83
@@ -109,7 +111,11 @@ void XineControl::length() {
109int XineControl::position() { 111int XineControl::position() {
110 m_position = (m_currentTime/m_length*100); 112 length();
113 qDebug("M_LENGTH :" + m_length);
114 m_position = ( currentTime() /m_length*100);
111 mediaPlayerState->setPosition( m_position ); 115 mediaPlayerState->setPosition( m_position );
116 long emitPos = (long)m_position;
117 emit positionChanged( emitPos );
118 QTimer::singleShot( 1000, this, SLOT( position() ) );
119 qDebug("POSITION : " + m_position);
112 return m_position; 120 return m_position;
113 emit positionChanged( m_position );
114 QTimer::singleShot( 1000, this, SLOT( position ) );
115} 121}
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
@@ -66,3 +66,3 @@ private:
66signals: 66signals:
67 void positionChanged( int position ); 67 void positionChanged( long position );
68 68