[Digikam-devel] [Bug 168022] Border width slider behaves incorrectly with preserve aspect ratio switched off
Gilles Caulier
caulier.gilles at gmail.com
Fri Aug 1 19:36:29 BST 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=168022
------- Additional Comments From caulier.gilles gmail com 2008-08-01 20:36 -------
Looks like a KDE bug into KDoubleNumInput
Look at the code from knuminput.cpp (current trunk):
// upcast to base type to get the minimum/maximum in int form:
QDoubleSpinBox * spin = d->spin;
int slmax = spin->maximum(); <-- What if maximum is 0.4? Slider's maximum is 0.
int slmin = spin->minimum(); <-- same for this
int slvalue = spin->value(); <--
int slstep = spin->singleStep(); <-- Step 0.01? slstep is 0
...
priv->m_slider = new QSlider(Qt::Horizontal, this);
priv->m_slider->setMinimum(slmin);
priv->m_slider->setMaximum(slmax);
priv->m_slider->setSingleStep(slstep);
priv->m_slider->setValue(slvalue);
Look at compilation warning:
/home/marcel/freshmeat/multimedia/kde4/src/KDE/kdelibs/kdeui/widgets/knuminput.cpp:834: warning: converting to 'int' from 'double'
Gilles Caulier
More information about the Digikam-devel
mailing list