diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 01:45:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8 (patch) | |
tree | 8ab383dce47ed689137addbac041ef1f9e300faf /src/gui/registerdialog.cpp | |
parent | 5d02ab43ff6d3e328a3b02479c033609023edec2 (diff) | |
download | manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.gz manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.bz2 manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.xz manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.zip |
Add palette inheritance to textfield class.
Diffstat (limited to 'src/gui/registerdialog.cpp')
-rw-r--r-- | src/gui/registerdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/registerdialog.cpp b/src/gui/registerdialog.cpp index f83f37923..d48e2f2c0 100644 --- a/src/gui/registerdialog.cpp +++ b/src/gui/registerdialog.cpp @@ -66,9 +66,9 @@ RegisterDialog::RegisterDialog(LoginData *const data): gcn::ActionListener(), gcn::KeyListener(), mLoginData(data), - mUserField(new TextField(mLoginData->username)), - mPasswordField(new PasswordField(mLoginData->password)), - mConfirmField(new PasswordField), + mUserField(new TextField(this, mLoginData->username)), + mPasswordField(new PasswordField(this, mLoginData->password)), + mConfirmField(new PasswordField(this)), mEmailField(nullptr), mRegisterButton(new Button(this, _("Register"), "register", this)), mCancelButton(new Button(this, _("Cancel"), "cancel", this)), @@ -119,7 +119,7 @@ RegisterDialog::RegisterDialog(LoginData *const data): if (optionalActions & Net::LoginHandler::SetEmailOnRegister) { Label *const emailLabel = new Label(_("Email:")); - mEmailField = new TextField; + mEmailField = new TextField(this); placer(0, row, emailLabel); placer(1, row, mEmailField, 3).setPadding(2); |