diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-02 13:20:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-02 13:20:23 +0300 |
commit | 39a3fd884d6d585825d9f80a578c6f466a856ec3 (patch) | |
tree | ee0184c30b08dd452ae9e4e523a9bb6aa291f33b /src/gui/windows/charcreatedialog.cpp | |
parent | 35278ed7f80ed8a02785573d510c36b38998debe (diff) | |
download | plus-39a3fd884d6d585825d9f80a578c6f466a856ec3.tar.gz plus-39a3fd884d6d585825d9f80a578c6f466a856ec3.tar.bz2 plus-39a3fd884d6d585825d9f80a578c6f466a856ec3.tar.xz plus-39a3fd884d6d585825d9f80a578c6f466a856ec3.zip |
Set correct step in sliders.
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 42bbb4b88..f0a9781f2 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -514,9 +514,8 @@ void CharCreateDialog::setAttributes(const StringVect &labels, mAttributeLabel[i]->adjustSize(); add(mAttributeLabel[i]); - mAttributeSlider[i] = new Slider(this, min, max); - mAttributeSlider[i]->setDimension(Rect(140, y + i * 24, - 150, 12)); + mAttributeSlider[i] = new Slider(this, min, max, 1.0); + mAttributeSlider[i]->setDimension(Rect(140, y + i * 24, 150, 12)); mAttributeSlider[i]->setActionEventId("statslider"); mAttributeSlider[i]->addActionListener(this); add(mAttributeSlider[i]); |