changeset 43:ee696abaab99

(issue16) Fix speed slider jumpiness The default steps were far too large which made the slider jumpy on click.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 May 2015 18:20:13 +0200
parents 2836b6ed430a
children 73e6b6b12412
files src/pngplayer.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/pngplayer.cpp	Wed May 06 18:18:48 2015 +0200
+++ b/src/pngplayer.cpp	Wed May 06 18:20:13 2015 +0200
@@ -87,6 +87,8 @@
     mSpeedSlider->setTickPosition(QSlider::TicksBelow);
     mSpeedSlider->setTracking(false);
     mSpeedSlider->setInvertedAppearance(true);
+    mSpeedSlider->setSingleStep(1);
+    mSpeedSlider->setPageStep(1);
 
     speedArea->addWidget(mSpeedSlider);
     connect(mSpeedSlider, &QSlider::valueChanged, this, &PNGPlayer::speedChanged);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)