summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupitem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-30 22:59:30 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-30 22:59:30 +0300
commit54a54eb5317650fc3306d200517bcc48bb7f1d9c (patch)
treec9531ffffa2b8a97c134a0d7d0ad14de16da3dc9 /src/gui/widgets/setupitem.cpp
parent679f626e7e937a55b315d58fd3c3e23077e91ede (diff)
downloadmv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.gz
mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.bz2
mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.xz
mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.zip
fix styled drawing after update.
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r--src/gui/widgets/setupitem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp
index 043d0870f..9b552d568 100644
--- a/src/gui/widgets/setupitem.cpp
+++ b/src/gui/widgets/setupitem.cpp
@@ -696,7 +696,7 @@ void SetupItemSlider::createControls()
mSlider = new Slider(mMin, mMax);
mSlider->setActionEventId(mEventName);
mSlider->addActionListener(mParent);
- mSlider->setValue(atof(mValue.c_str()));
+ mSlider->setValue2(atof(mValue.c_str()));
mSlider->setHeight(30);
mWidget = mSlider;
@@ -725,7 +725,7 @@ void SetupItemSlider::toWidget()
if (!mSlider)
return;
- mSlider->setValue(atof(mValue.c_str()));
+ mSlider->setValue2(atof(mValue.c_str()));
}
void SetupItemSlider::action(const gcn::ActionEvent &event A_UNUSED)
@@ -820,7 +820,7 @@ void SetupItemSlider2::createControls()
mSlider = new Slider(mMin, mMax);
mSlider->setActionEventId(mEventName);
mSlider->addActionListener(mParent);
- mSlider->setValue(atof(mValue.c_str()));
+ mSlider->setValue2(atof(mValue.c_str()));
mSlider->setHeight(30);
mWidget = mSlider;
@@ -879,7 +879,7 @@ void SetupItemSlider2::toWidget()
int val = roundDouble(atof(mValue.c_str()));
if (mInvert)
val = mInvertValue - val;
- mSlider->setValue(val);
+ mSlider->setValue2(val);
updateLabel();
}