summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 18:40:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 18:40:31 +0300
commite6d251345a48108495d39d82b0ec79deac63d86d (patch)
treee7a8ecf138b30b091146f51e1b13f0e0e7c0359b /src/gui/widgets/tabs
parent71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (diff)
downloadplus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.gz
plus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.bz2
plus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.xz
plus-e6d251345a48108495d39d82b0ec79deac63d86d.zip
Add strong typed bool type in OkDialog.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/setup_input.cpp2
-rw-r--r--src/gui/widgets/tabs/setup_theme.cpp9
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp8
3 files changed, 10 insertions, 9 deletions
diff --git a/src/gui/widgets/tabs/setup_input.cpp b/src/gui/widgets/tabs/setup_input.cpp
index 3328cdb28..4eb81bc4a 100644
--- a/src/gui/widgets/tabs/setup_input.cpp
+++ b/src/gui/widgets/tabs/setup_input.cpp
@@ -164,7 +164,7 @@ void Setup_Input::apply()
_("OK"),
DialogType::ERROR,
Modal_true,
- true,
+ ShowCenter_true,
nullptr,
260);
}
diff --git a/src/gui/widgets/tabs/setup_theme.cpp b/src/gui/widgets/tabs/setup_theme.cpp
index e795b0928..9efba0897 100644
--- a/src/gui/widgets/tabs/setup_theme.cpp
+++ b/src/gui/widgets/tabs/setup_theme.cpp
@@ -312,7 +312,7 @@ void Setup_Theme::action(const ActionEvent &event)
_("OK"),
DialogType::OK,
Modal_false,
- true,
+ ShowCenter_true,
nullptr,
600);
}
@@ -340,13 +340,14 @@ void Setup_Theme::apply()
if (config.getStringValue("theme") != mTheme)
{
// TRANSLATORS: theme message dialog
- new OkDialog(_("Theme Changed"), _("Restart your client for "
- "the change to take effect."),
+ new OkDialog(_("Theme Changed"),
+ // TRANSLATORS: ok dialog message
+ _("Restart your client for the change to take effect."),
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
Modal_true,
- true,
+ ShowCenter_true,
nullptr,
260);
}
diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp
index 8c4be5f85..c2ee237e5 100644
--- a/src/gui/widgets/tabs/setup_video.cpp
+++ b/src/gui/widgets/tabs/setup_video.cpp
@@ -250,7 +250,7 @@ void Setup_Video::apply()
_("OK"),
DialogType::OK,
Modal_true,
- true,
+ ShowCenter_true,
nullptr,
260);
}
@@ -277,7 +277,7 @@ void Setup_Video::apply()
_("OK"),
DialogType::OK,
Modal_true,
- true,
+ ShowCenter_true,
nullptr,
260);
}
@@ -395,7 +395,7 @@ void Setup_Video::action(const ActionEvent &event)
_("OK"),
DialogType::OK,
Modal_true,
- true,
+ ShowCenter_true,
nullptr,
260);
}
@@ -410,7 +410,7 @@ void Setup_Video::action(const ActionEvent &event)
_("OK"),
DialogType::OK,
Modal_true,
- true,
+ ShowCenter_true,
nullptr,
260);
}