From 121002ebe4cdebd99fcba5ec833c1c7b05bb8892 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Mon, 29 Jul 2002 23:43:21 +0000 Subject: fixed slider --- (limited to 'noncore/multimedia') 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 @@ -269,7 +269,7 @@ void AudioWidget::setView( char view ) { } else { // this stops the slider from being moved, thus // does not stop stream when it reaches the end - slider->show(); + slider.show(); connect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); connect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) ); } @@ -298,15 +298,15 @@ void AudioWidget::updateSlider( long i, long max ) { } // Will flicker too much if we don't do this // Scale to something reasonable - int width = slider->width(); + int width = slider.width(); int val = int((double)i * width / max); if ( !audioSliderBeingMoved ) { - if ( slider->value() != val ) { - slider->setValue( val ); + if ( slider.value() != val ) { + slider.setValue( val ); } - if ( slider->maxValue() != width ) { - slider->setMaxValue( width ); + if ( slider.maxValue() != width ) { + slider.setMaxValue( width ); } } } -- cgit v0.9.0.2