diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 00:52:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 41adf71a823f475b7f12b00e06056b778311da84 (patch) | |
tree | 55925f737e884f756d05a71238f207c03070a7ad /src/gui/charselectdialog.cpp | |
parent | 504219f9df4b9dda139dd832e263a136e51c4851 (diff) | |
download | plus-41adf71a823f475b7f12b00e06056b778311da84.tar.gz plus-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2 plus-41adf71a823f475b7f12b00e06056b778311da84.tar.xz plus-41adf71a823f475b7f12b00e06056b778311da84.zip |
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r-- | src/gui/charselectdialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 06997bc34..8e0ced99d 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -143,8 +143,8 @@ CharSelectDialog::CharSelectDialog(LoginData *const data): mLoginData(data), mAccountNameLabel(new Label(mLoginData->username)), mLastLoginLabel(new Label(mLoginData->lastLogin)), - mSwitchLoginButton(new Button(_("Switch Login"), "switch", this)), - mChangePasswordButton(new Button(_("Change Password"), + mSwitchLoginButton(new Button(this, _("Switch Login"), "switch", this)), + mChangePasswordButton(new Button(this, _("Change Password"), "change_password", this)), mUnregisterButton(nullptr), mChangeEmailButton(nullptr), @@ -167,7 +167,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data): if (optionalActions & Net::LoginHandler::Unregister) { - mUnregisterButton = new Button(_("Unregister"), + mUnregisterButton = new Button(this, _("Unregister"), "unregister", this); placer(3, 1, mUnregisterButton); } @@ -176,7 +176,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data): if (optionalActions & Net::LoginHandler::ChangeEmail) { - mChangeEmailButton = new Button(_("Change Email"), + mChangeEmailButton = new Button(this, _("Change Email"), "change_email", this); placer(3, 2, mChangeEmailButton); } @@ -564,8 +564,8 @@ CharacterDisplay::CharacterDisplay(const Widget2 *const widget, mName(new Label("wwwwwwwwwwwwwwwwwwwwwwww")), mLevel(new Label("(888)")), mMoney(new Label("wwwwwwwww")), - mButton(new Button("wwwwwwwww", "go", charSelectDialog)), - mDelete(new Button(_("Delete"), "delete", charSelectDialog)) + mButton(new Button(this, "wwwwwwwww", "go", charSelectDialog)), + mDelete(new Button(this, _("Delete"), "delete", charSelectDialog)) { LayoutHelper h(this); ContainerPlacer placer = h.getPlacer(0, 0); |