summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_visual.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-02 13:20:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-02 13:20:23 +0300
commit39a3fd884d6d585825d9f80a578c6f466a856ec3 (patch)
treeee0184c30b08dd452ae9e4e523a9bb6aa291f33b /src/gui/widgets/tabs/setup_visual.cpp
parent35278ed7f80ed8a02785573d510c36b38998debe (diff)
downloadplus-39a3fd884d6d585825d9f80a578c6f466a856ec3.tar.gz
plus-39a3fd884d6d585825d9f80a578c6f466a856ec3.tar.bz2
plus-39a3fd884d6d585825d9f80a578c6f466a856ec3.tar.xz
plus-39a3fd884d6d585825d9f80a578c6f466a856ec3.zip
Set correct step in sliders.
Diffstat (limited to 'src/gui/widgets/tabs/setup_visual.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_visual.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/setup_visual.cpp b/src/gui/widgets/tabs/setup_visual.cpp
index eb6591f9f..fa4e2f4ef 100644
--- a/src/gui/widgets/tabs/setup_visual.cpp
+++ b/src/gui/widgets/tabs/setup_visual.cpp
@@ -139,7 +139,7 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemSlider(_("Gui opacity"), "", "guialpha",
- this, "guialphaEvent", 0.1, 1.0, 150, true);
+ this, "guialphaEvent", 0.1, 1.0, 0.1, 150, true, true);
mSpeachList->fillFromArray(&speachList[0], speachListSize);
// TRANSLATORS: settings option
@@ -164,8 +164,8 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
// TRANSLATORS: particle details
mParticleList->push_back(_("max"));
(new SetupItemSlider2(_("Particle detail"), "", "particleEmitterSkip",
- this, "particleEmitterSkipEvent", 0, 3,
- mParticleList, true))->setInvertValue(3);
+ this, "particleEmitterSkipEvent", 0, 3, 1,
+ mParticleList, true, true, false))->setInvertValue(3);
mParticleTypeList->fillFromArray(&particleTypeList[0],
particleTypeListSize);
@@ -183,7 +183,7 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemSlider(_("Gamma"), "", "gamma",
- this, "gammeEvent", 1, 20, 350, true);
+ this, "gammeEvent", 1, 20, 1, 350, true, true);
// TRANSLATORS: settings group