summaryrefslogtreecommitdiff
path: root/noncore/multimedia
authorllornkcor <llornkcor>2002-07-29 23:43:21 (UTC)
committer llornkcor <llornkcor>2002-07-29 23:43:21 (UTC)
commit121002ebe4cdebd99fcba5ec833c1c7b05bb8892 (patch) (unidiff)
treedcf68d4f74388a1b01052ed2e6eb9fe1ee0ede86 /noncore/multimedia
parent6c41e8a4fd35f8e1689caa2e62981d1df2432223 (diff)
downloadopie-121002ebe4cdebd99fcba5ec833c1c7b05bb8892.zip
opie-121002ebe4cdebd99fcba5ec833c1c7b05bb8892.tar.gz
opie-121002ebe4cdebd99fcba5ec833c1c7b05bb8892.tar.bz2
fixed slider
Diffstat (limited to 'noncore/multimedia') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index b82171e..1fae689 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -271,3 +271,3 @@ void AudioWidget::setView( char view ) {
271 // does not stop stream when it reaches the end 271 // does not stop stream when it reaches the end
272 slider->show(); 272 slider.show();
273 connect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); 273 connect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) );
@@ -300,11 +300,11 @@ void AudioWidget::updateSlider( long i, long max ) {
300 // Scale to something reasonable 300 // Scale to something reasonable
301 int width = slider->width(); 301 int width = slider.width();
302 int val = int((double)i * width / max); 302 int val = int((double)i * width / max);
303 if ( !audioSliderBeingMoved ) { 303 if ( !audioSliderBeingMoved ) {
304 if ( slider->value() != val ) { 304 if ( slider.value() != val ) {
305 slider->setValue( val ); 305 slider.setValue( val );
306 } 306 }
307 307
308 if ( slider->maxValue() != width ) { 308 if ( slider.maxValue() != width ) {
309 slider->setMaxValue( width ); 309 slider.setMaxValue( width );
310 } 310 }