summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-26 20:37:08 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-26 20:37:08 +0300
commit681547eff8134564281ff05032eb7d29f1e7f312 (patch)
treea6b41f0e5ac25b1c100c3e609ab34739248e544a /src/gui/widgets/tabs
parent9bc0a2e01e60e3c57324c86fa76be3bfa88dca81 (diff)
downloadplus-681547eff8134564281ff05032eb7d29f1e7f312.tar.gz
plus-681547eff8134564281ff05032eb7d29f1e7f312.tar.bz2
plus-681547eff8134564281ff05032eb7d29f1e7f312.tar.xz
plus-681547eff8134564281ff05032eb7d29f1e7f312.zip
Remove default parameters from checkbox.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/setup_joystick.cpp11
-rw-r--r--src/gui/widgets/tabs/setup_relations.cpp6
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp17
3 files changed, 22 insertions, 12 deletions
diff --git a/src/gui/widgets/tabs/setup_joystick.cpp b/src/gui/widgets/tabs/setup_joystick.cpp
index 12fd49b23..927215e1e 100644
--- a/src/gui/widgets/tabs/setup_joystick.cpp
+++ b/src/gui/widgets/tabs/setup_joystick.cpp
@@ -50,12 +50,15 @@ Setup_Joystick::Setup_Joystick(const Widget2 *const widget) :
// TRANSLATORS: joystick settings tab button
mDetectButton(new Button(this, _("Detect joysticks"), "detect", this)),
// TRANSLATORS: joystick settings tab checkbox
- mJoystickEnabled(new CheckBox(this, _("Enable joystick"))),
+ mJoystickEnabled(new CheckBox(this, _("Enable joystick"),
+ false, nullptr, std::string())),
mNamesModel(new NamesModel),
mNamesDropDown(new DropDown(this, mNamesModel)),
- // TRANSLATORS: joystick settings tab checkbox
- mUseInactiveCheckBox(new CheckBox(this, _("Use joystick if client "
- "window inactive"), config.getBoolValue("useInactiveJoystick"))),
+ mUseInactiveCheckBox(new CheckBox(this,
+ // TRANSLATORS: joystick settings tab checkbox
+ _("Use joystick if client window inactive"),
+ config.getBoolValue("useInactiveJoystick"),
+ nullptr, std::string())),
mOriginalJoystickEnabled(config.getBoolValue("joystickEnabled"))
{
// TRANSLATORS: joystick settings tab name
diff --git a/src/gui/widgets/tabs/setup_relations.cpp b/src/gui/widgets/tabs/setup_relations.cpp
index a5c556812..80e9526f0 100644
--- a/src/gui/widgets/tabs/setup_relations.cpp
+++ b/src/gui/widgets/tabs/setup_relations.cpp
@@ -71,10 +71,12 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) :
mPlayerTable, Opaque_true, std::string())),
// TRANSLATORS: relation dialog button
mDefaultTrading(new CheckBox(this, _("Allow trading"),
- (playerRelations.getDefault() & PlayerRelation::TRADE) != 0u)),
+ (playerRelations.getDefault() & PlayerRelation::TRADE) != 0u,
+ nullptr, std::string())),
// TRANSLATORS: relation dialog button
mDefaultWhisper(new CheckBox(this, _("Allow whispers"),
- (playerRelations.getDefault() & PlayerRelation::WHISPER) != 0u)),
+ (playerRelations.getDefault() & PlayerRelation::WHISPER) != 0u,
+ nullptr, std::string())),
// TRANSLATORS: relation dialog button
mDeleteButton(new Button(this, _("Delete"), ACTION_DELETE, this)),
mIgnoreActionChoicesModel(new IgnoreChoicesListModel),
diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp
index 26e97b19a..7d8e474ea 100644
--- a/src/gui/widgets/tabs/setup_video.cpp
+++ b/src/gui/widgets/tabs/setup_video.cpp
@@ -72,10 +72,12 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
mOpenGLListModel(new OpenGLListModel),
mModeList(CREATEWIDGETR(ListBox, widget, mModeListModel, "")),
// TRANSLATORS: video settings checkbox
- mFsCheckBox(new CheckBox(this, _("Full screen"), mFullScreenEnabled)),
+ mFsCheckBox(new CheckBox(this, _("Full screen"), mFullScreenEnabled,
+ nullptr, std::string())),
mOpenGLDropDown(new DropDown(widget, mOpenGLListModel)),
// TRANSLATORS: video settings checkbox
- mFpsCheckBox(new CheckBox(this, _("FPS limit:"))),
+ mFpsCheckBox(new CheckBox(this, _("FPS limit:"), false,
+ nullptr, std::string())),
mFpsSlider(new Slider(this, 2.0, 160.0, 1.0)),
mFpsLabel(new Label(this)),
mAltFpsSlider(new Slider(this, 2.0, 160.0, 1.0)),
@@ -93,7 +95,8 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
#ifdef USE_SDL2
mAllowHighDPI(config.getBoolValue("allowHighDPI")),
// TRANSLATORS: video settings checkbox
- mAllowHighDPICheckBox(new CheckBox(this, _("High DPI"), mAllowHighDPI)),
+ mAllowHighDPICheckBox(new CheckBox(this, _("High DPI"), mAllowHighDPI,
+ nullptr, std::string())),
#endif // USE_SDL2
mCustomCursorCheckBox(new CheckBox(this,
#ifdef ANDROID
@@ -103,12 +106,14 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
// TRANSLATORS: video settings checkbox
_("Custom cursor"),
#endif // ANDROID
- mCustomCursorEnabled)),
+ mCustomCursorEnabled,
+ nullptr, std::string())),
// TRANSLATORS: video settings checkbox
mEnableResizeCheckBox(new CheckBox(this, _("Enable resize"),
- mEnableResize)),
+ mEnableResize, nullptr, std::string())),
// TRANSLATORS: video settings checkbox
- mNoFrameCheckBox(new CheckBox(this, _("No frame"), mNoFrame))
+ mNoFrameCheckBox(new CheckBox(this, _("No frame"), mNoFrame,
+ nullptr, std::string()))
{
// TRANSLATORS: video settings tab name
setName(_("Video"));