summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_video.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 18:29:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 18:29:07 +0300
commit71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (patch)
tree3942aec29f33b5ea2aa2e353451e10648f1bbb82 /src/gui/widgets/tabs/setup_video.cpp
parent45460ca58b3cbf6d92fe3cac1311bbfc9d00e841 (diff)
downloadmanaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.gz
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.bz2
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.xz
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.zip
Add strong typed bool type for modal bool flag.
Diffstat (limited to 'src/gui/widgets/tabs/setup_video.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp
index caf12e4cd..8c4be5f85 100644
--- a/src/gui/widgets/tabs/setup_video.cpp
+++ b/src/gui/widgets/tabs/setup_video.cpp
@@ -249,7 +249,10 @@ void Setup_Video::apply()
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
- true, true, nullptr, 260);
+ Modal_true,
+ true,
+ nullptr,
+ 260);
}
#endif
config.setValue("screen", fullscreen);
@@ -273,7 +276,10 @@ void Setup_Video::apply()
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
- true, true, nullptr, 260);
+ Modal_true,
+ true,
+ nullptr,
+ 260);
}
mFps = mFpsCheckBox->isSelected() ?
@@ -388,7 +394,10 @@ void Setup_Video::action(const ActionEvent &event)
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
- true, true, nullptr, 260);
+ Modal_true,
+ true,
+ nullptr,
+ 260);
}
else
{
@@ -400,7 +409,10 @@ void Setup_Video::action(const ActionEvent &event)
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
- true, true, nullptr, 260);
+ Modal_true,
+ true,
+ nullptr,
+ 260);
}
}
#else