summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_audio.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-31 21:53:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-31 21:53:50 +0300
commit06720edd93b51a84650e2d385a24043cc4fb932e (patch)
tree002c54e58ee0cc45feca1fc00b64808b46861f35 /src/gui/widgets/tabs/setup_audio.cpp
parente8f29b1cff5360c9d16587b91d72863af4763d08 (diff)
downloadplus-06720edd93b51a84650e2d385a24043cc4fb932e.tar.gz
plus-06720edd93b51a84650e2d385a24043cc4fb932e.tar.bz2
plus-06720edd93b51a84650e2d385a24043cc4fb932e.tar.xz
plus-06720edd93b51a84650e2d385a24043cc4fb932e.zip
Add strong typed bool enum mainconfig.
Diffstat (limited to 'src/gui/widgets/tabs/setup_audio.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_audio.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/setup_audio.cpp b/src/gui/widgets/tabs/setup_audio.cpp
index e913f611c..32445f1c6 100644
--- a/src/gui/widgets/tabs/setup_audio.cpp
+++ b/src/gui/widgets/tabs/setup_audio.cpp
@@ -73,12 +73,14 @@ Setup_Audio::Setup_Audio(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemSlider(_("Sfx volume"), "", "sfxVolume",
this, "sfxVolumeEvent", 0, soundManager.getMaxVolume(), 1,
- 150, true, true);
+ 150, true,
+ MainConfig_true);
// TRANSLATORS: settings option
new SetupItemSlider(_("Music volume"), "", "musicVolume",
this, "musicVolumeEvent", 0, soundManager.getMaxVolume(), 1,
- 150, true, true);
+ 150, true,
+ MainConfig_true);
// TRANSLATORS: settings option
new SetupItemCheckBox(_("Enable music fade out"), "",
@@ -98,7 +100,9 @@ Setup_Audio::Setup_Audio(const Widget2 *const widget) :
mChannelsList->push_back(_("surround+center+lfe"));
// TRANSLATORS: settings option
new SetupItemSlider2(_("Audio channels"), "", "audioChannels", this,
- "audioChannels", 1, 4, 1, mChannelsList, false, true, false);
+ "audioChannels", 1, 4, 1, mChannelsList, false,
+ MainConfig_true,
+ false);
// TRANSLATORS: settings group