From 41adf71a823f475b7f12b00e06056b778311da84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 00:52:01 +0300 Subject: Add palette inheritance to button class. --- src/gui/charselectdialog.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/charselectdialog.cpp') 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); -- cgit v1.2.3-70-g09d2