summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-29 23:43:21 (UTC)
committer llornkcor <llornkcor>2002-07-29 23:43:21 (UTC)
commit121002ebe4cdebd99fcba5ec833c1c7b05bb8892 (patch) (side-by-side diff)
treedcf68d4f74388a1b01052ed2e6eb9fe1ee0ede86
parent6c41e8a4fd35f8e1689caa2e62981d1df2432223 (diff)
downloadopie-121002ebe4cdebd99fcba5ec833c1c7b05bb8892.zip
opie-121002ebe4cdebd99fcba5ec833c1c7b05bb8892.tar.gz
opie-121002ebe4cdebd99fcba5ec833c1c7b05bb8892.tar.bz2
fixed slider
Diffstat (more/less context) (show 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
@@ -270,5 +270,5 @@ void AudioWidget::setView( char view ) {
// 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) ) );
@@ -299,13 +299,13 @@ 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 );
}
}