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/windows/registerdialog.cpp | |
parent | 5e7a4e68d73eb9adcb72de9d7e2b0e592f2c58cc (diff) | |
download | mv-81145e509cdba68c94c4173e16ddd492cd813db8.tar.gz mv-81145e509cdba68c94c4173e16ddd492cd813db8.tar.bz2 mv-81145e509cdba68c94c4173e16ddd492cd813db8.tar.xz mv-81145e509cdba68c94c4173e16ddd492cd813db8.zip |
Remove default parameters from textfield.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r-- | src/gui/windows/registerdialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index 0f19e572e..1551ec449 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -54,7 +54,8 @@ RegisterDialog::RegisterDialog(LoginData &data) : ActionListener(), KeyListener(), mLoginData(&data), - mUserField(new TextField(this, mLoginData->username)), + mUserField(new TextField(this, mLoginData->username, LoseFocusOnTab_true, + nullptr, std::string(), false)), mPasswordField(new PasswordField(this, mLoginData->password)), mConfirmField(new PasswordField(this, std::string())), mEmailField(nullptr), @@ -103,7 +104,12 @@ RegisterDialog::RegisterDialog(LoginData &data) : { // TRANSLATORS: register dialog. label. Label *const emailLabel = new Label(this, _("Email:")); - mEmailField = new TextField(this); + mEmailField = new TextField(this, + std::string(), + LoseFocusOnTab_true, + nullptr, + std::string(), + false); placer(0, row, emailLabel, 1, 1); placer(1, row, mEmailField, 3, 1).setPadding(2); mEmailField->addKeyListener(this); |