summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 00:52:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit41adf71a823f475b7f12b00e06056b778311da84 (patch)
tree55925f737e884f756d05a71238f207c03070a7ad /src/gui/charselectdialog.cpp
parent504219f9df4b9dda139dd832e263a136e51c4851 (diff)
downloadmanaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.gz
manaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2
manaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.xz
manaverse-41adf71a823f475b7f12b00e06056b778311da84.zip
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r--src/gui/charselectdialog.cpp12
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);