diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 02:23:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 0153e8fa499b7bbdd712339bfb3921ead15a37a2 (patch) | |
tree | 0e12bc130aa40d3bc41f86e16754f060b450977e /src/gui/logindialog.cpp | |
parent | 4c7a11b639ec94c8a32a9a52e99652c464745037 (diff) | |
download | ManaVerse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.gz ManaVerse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.bz2 ManaVerse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.xz ManaVerse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.zip |
Add palette inheritance to label class.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r-- | src/gui/logindialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index b16082485..8b2ff0d7d 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -124,7 +124,7 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName, mPassField(new PasswordField(this, mLoginData->password)), mKeepCheck(new CheckBox(this, _("Remember username"), mLoginData->remember)), - mUpdateTypeLabel(new Label(_("Update:"))), + mUpdateTypeLabel(new Label(this, _("Update:"))), mUpdateHostLabel(nullptr), mUpdateTypeModel(new UpdateTypeModel()), mUpdateTypeDropDown(new DropDown(this, mUpdateTypeModel)), @@ -140,14 +140,14 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName, mUpdateHost(updateHost), mServerName(serverName) { - Label *const serverLabel1 = new Label(_("Server:")); - Label *const serverLabel2 = new Label(serverName); + Label *const serverLabel1 = new Label(this, _("Server:")); + Label *const serverLabel2 = new Label(this, serverName); serverLabel2->adjustSize(); - Label *const userLabel = new Label(_("Name:")); - Label *const passLabel = new Label(_("Password:")); + Label *const userLabel = new Label(this, _("Name:")); + Label *const passLabel = new Label(this, _("Password:")); if (mLoginData && mLoginData->updateHosts.size() > 1) { - mUpdateHostLabel = new Label(strprintf(_("Update host: %s"), + mUpdateHostLabel = new Label(this, strprintf(_("Update host: %s"), mLoginData->updateHost.c_str())); mUpdateListModel = new UpdateListModel(mLoginData); mUpdateHostDropDown = new DropDown(this, mUpdateListModel, |