diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-26 19:34:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-26 19:34:40 +0300 |
commit | 81145e509cdba68c94c4173e16ddd492cd813db8 (patch) | |
tree | 3603449bfdd5e2d357b240cdaa5cead9b4077a1f /src/gui/widgets/tabs | |
parent | 5e7a4e68d73eb9adcb72de9d7e2b0e592f2c58cc (diff) | |
download | manaplus-81145e509cdba68c94c4173e16ddd492cd813db8.tar.gz manaplus-81145e509cdba68c94c4173e16ddd492cd813db8.tar.bz2 manaplus-81145e509cdba68c94c4173e16ddd492cd813db8.tar.xz manaplus-81145e509cdba68c94c4173e16ddd492cd813db8.zip |
Remove default parameters from textfield.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r-- | src/gui/widgets/tabs/setup_colors.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp index cdbda9415..d15fdc1b1 100644 --- a/src/gui/widgets/tabs/setup_colors.cpp +++ b/src/gui/widgets/tabs/setup_colors.cpp @@ -68,19 +68,23 @@ Setup_Colors::Setup_Colors(const Widget2 *const widget) : // TRANSLATORS: colors tab. label. mGradDelayLabel(new Label(this, _("Delay:"))), mGradDelaySlider(new Slider(this, 20.0, 100.0, 1.0)), - mGradDelayText(new TextField(this)), + mGradDelayText(new TextField(this, std::string(), LoseFocusOnTab_true, + nullptr, std::string(), false)), // TRANSLATORS: colors tab. label. mRedLabel(new Label(this, _("Red:"))), mRedSlider(new Slider(this, 0.0, 255.0, 1.0)), - mRedText(new TextField(this)), + mRedText(new TextField(this, std::string(), LoseFocusOnTab_true, + nullptr, std::string(), false)), // TRANSLATORS: colors tab. label. mGreenLabel(new Label(this, _("Green:"))), mGreenSlider(new Slider(this, 0.0, 255.0, 1.0)), - mGreenText(new TextField(this)), + mGreenText(new TextField(this, std::string(), LoseFocusOnTab_true, + nullptr, std::string(), false)), // TRANSLATORS: colors tab. label. mBlueLabel(new Label(this, _("Blue:"))), mBlueSlider(new Slider(this, 0.0, 255.0, 1.0)), - mBlueText(new TextField(this)) + mBlueText(new TextField(this, std::string(), LoseFocusOnTab_true, + nullptr, std::string(), false)) { // TRANSLATORS: settings colors tab name setName(_("Colors")); |