summaryrefslogtreecommitdiff
path: root/src/gui/windows/registerdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-25 06:12:48 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-25 06:12:48 +0300
commitf55baadfeb6245899497cd472f65f23e905481b9 (patch)
treed5d3dfa758d9d46cf91bc81e0190ee67c7bc48e7 /src/gui/windows/registerdialog.cpp
parent52039744fa2e5e116548e5236cd8ba5f5d81702a (diff)
downloadmanaplus-f55baadfeb6245899497cd472f65f23e905481b9.tar.gz
manaplus-f55baadfeb6245899497cd472f65f23e905481b9.tar.bz2
manaplus-f55baadfeb6245899497cd472f65f23e905481b9.tar.xz
manaplus-f55baadfeb6245899497cd472f65f23e905481b9.zip
Remove default parameters from containerplacer.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r--src/gui/windows/registerdialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index 699023d93..a033e9000 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -75,15 +75,15 @@ RegisterDialog::RegisterDialog(LoginData &data) :
// TRANSLATORS: register dialog. label.
Label *const confirmLabel = new Label(this, _("Confirm:"));
- ContainerPlacer placer;
+ ContainerPlacer placer(nullptr, nullptr);
placer = getPlacer(0, 0);
- placer(0, 0, userLabel);
- placer(0, 1, passwordLabel);
- placer(0, 2, confirmLabel);
+ placer(0, 0, userLabel, 1, 1);
+ placer(0, 1, passwordLabel, 1, 1);
+ placer(0, 2, confirmLabel, 1, 1);
- placer(1, 0, mUserField, 3).setPadding(2);
- placer(1, 1, mPasswordField, 3).setPadding(2);
- placer(1, 2, mConfirmField, 3).setPadding(2);
+ placer(1, 0, mUserField, 3, 1).setPadding(2);
+ placer(1, 1, mPasswordField, 3, 1).setPadding(2);
+ placer(1, 2, mConfirmField, 3, 1).setPadding(2);
int row = 3;
@@ -93,8 +93,8 @@ RegisterDialog::RegisterDialog(LoginData &data) :
mMaleButton = new RadioButton(this, _("Male"), "sex", true);
// TRANSLATORS: register dialog. button.
mFemaleButton = new RadioButton(this, _("Female"), "sex", false);
- placer(1, row, mMaleButton);
- placer(2, row, mFemaleButton);
+ placer(1, row, mMaleButton, 1, 1);
+ placer(2, row, mFemaleButton, 1, 1);
row++;
}
@@ -104,8 +104,8 @@ RegisterDialog::RegisterDialog(LoginData &data) :
// TRANSLATORS: register dialog. label.
Label *const emailLabel = new Label(this, _("Email:"));
mEmailField = new TextField(this);
- placer(0, row, emailLabel);
- placer(1, row, mEmailField, 3).setPadding(2);
+ placer(0, row, emailLabel, 1, 1);
+ placer(1, row, mEmailField, 3, 1).setPadding(2);
mEmailField->addKeyListener(this);
mEmailField->setActionEventId("register");
mEmailField->addActionListener(this);
@@ -113,8 +113,8 @@ RegisterDialog::RegisterDialog(LoginData &data) :
}
placer = getPlacer(0, 2);
- placer(1, 0, mRegisterButton);
- placer(2, 0, mCancelButton);
+ placer(1, 0, mRegisterButton, 1, 1);
+ placer(2, 0, mCancelButton, 1, 1);
reflowLayout(250, 0);
mUserField->addKeyListener(this);