comparison src/pngplayer.cpp @ 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 26e1521b9afd
children 73e6b6b12412
comparison
equal deleted inserted replaced
42:2836b6ed430a 43:ee696abaab99
85 mSpeedSlider->setMaximum(10); 85 mSpeedSlider->setMaximum(10);
86 mSpeedSlider->setTickInterval(1); 86 mSpeedSlider->setTickInterval(1);
87 mSpeedSlider->setTickPosition(QSlider::TicksBelow); 87 mSpeedSlider->setTickPosition(QSlider::TicksBelow);
88 mSpeedSlider->setTracking(false); 88 mSpeedSlider->setTracking(false);
89 mSpeedSlider->setInvertedAppearance(true); 89 mSpeedSlider->setInvertedAppearance(true);
90 mSpeedSlider->setSingleStep(1);
91 mSpeedSlider->setPageStep(1);
90 92
91 speedArea->addWidget(mSpeedSlider); 93 speedArea->addWidget(mSpeedSlider);
92 connect(mSpeedSlider, &QSlider::valueChanged, this, &PNGPlayer::speedChanged); 94 connect(mSpeedSlider, &QSlider::valueChanged, this, &PNGPlayer::speedChanged);
93 95
94 mCurSpeedLabel = new QLabel; 96 mCurSpeedLabel = new QLabel;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)