Diffstat (limited to 'core/multimedia/opieplayer/audiowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/audiowidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/audiowidget.cpp b/core/multimedia/opieplayer/audiowidget.cpp index 20345b7..b9561d5 100644 --- a/core/multimedia/opieplayer/audiowidget.cpp +++ b/core/multimedia/opieplayer/audiowidget.cpp | |||
@@ -95,25 +95,26 @@ AudioWidget::AudioWidget(QWidget* parent, const char* name, WFlags f) : | |||
95 | 95 | ||
96 | if( !mediaPlayerState->isStreaming) { // this stops the slider from being moved, thus | 96 | if( !mediaPlayerState->isStreaming) { // this stops the slider from being moved, thus |
97 | // does not stop stream when it reaches the end | 97 | // does not stop stream when it reaches the end |
98 | connect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); | 98 | connect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); |
99 | connect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) ); | 99 | connect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) ); |
100 | } | 100 | } |
101 | // Intialise state | 101 | // Intialise state |
102 | setLength( mediaPlayerState->length() ); | 102 | setLength( mediaPlayerState->length() ); |
103 | setPosition( mediaPlayerState->position() ); | 103 | setPosition( mediaPlayerState->position() ); |
104 | setLooping( mediaPlayerState->fullscreen() ); | 104 | setLooping( mediaPlayerState->fullscreen() ); |
105 | setPaused( mediaPlayerState->paused() ); | 105 | setPaused( mediaPlayerState->paused() ); |
106 | setPlaying( mediaPlayerState->playing() ); | 106 | setPlaying( mediaPlayerState->playing() ); |
107 | 107 | if (mediaPlayerState->isStreaming) slider->hide(); | |
108 | |||
108 | } | 109 | } |
109 | 110 | ||
110 | 111 | ||
111 | AudioWidget::~AudioWidget() { | 112 | AudioWidget::~AudioWidget() { |
112 | for ( int i = 0; i < 4; i++ ) | 113 | for ( int i = 0; i < 4; i++ ) |
113 | delete pixmaps[i]; | 114 | delete pixmaps[i]; |
114 | } | 115 | } |
115 | 116 | ||
116 | 117 | ||
117 | static bool audioSliderBeingMoved = FALSE; | 118 | static bool audioSliderBeingMoved = FALSE; |
118 | 119 | ||
119 | 120 | ||