From 0153e8fa499b7bbdd712339bfb3921ead15a37a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 02:23:16 +0300 Subject: Add palette inheritance to label class. --- src/gui/textcommandeditor.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/gui/textcommandeditor.cpp') diff --git a/src/gui/textcommandeditor.cpp b/src/gui/textcommandeditor.cpp index 05ad61a5c..f8db77d6d 100644 --- a/src/gui/textcommandeditor.cpp +++ b/src/gui/textcommandeditor.cpp @@ -170,26 +170,26 @@ TextCommandEditor::TextCommandEditor(TextCommand *const command) : mCommand(command), mIsMagic(new RadioButton(_("magic"), "magic", mIsMagicCommand)), mIsOther(new RadioButton(_("other"), "magic", !mIsMagicCommand)), - mSymbolLabel(new Label(_("Symbol:"))), + mSymbolLabel(new Label(this, _("Symbol:"))), mSymbolTextField(new TextField(this)), - mCommandLabel(new Label(_("Command:"))), + mCommandLabel(new Label(this, _("Command:"))), mCommandTextField(new TextField(this)), - mCommentLabel(new Label(_("Comment:"))), + mCommentLabel(new Label(this, _("Comment:"))), mCommentTextField(new TextField(this)), mTargetTypeModel(new TargetTypeModel), - mTypeLabel(new Label(_("Target Type:"))), + mTypeLabel(new Label(this, _("Target Type:"))), mTypeDropDown(new DropDown(this, mTargetTypeModel)), mIconsModal(new IconsModal), - mIconLabel(new Label(_("Icon:"))), + mIconLabel(new Label(this, _("Icon:"))), mIconDropDown(new DropDown(this, mIconsModal)), - mManaLabel(new Label(_("Mana:"))), + mManaLabel(new Label(this, _("Mana:"))), mManaField(new IntTextField(this, 0)), - mMagicLvlLabel(new Label(_("Magic level:"))), + mMagicLvlLabel(new Label(this, _("Magic level:"))), mMagicLvlField(new IntTextField(this, 0)), mMagicSchoolModel(new MagicSchoolModel), - mSchoolLabel(new Label(_("Magic School:"))), + mSchoolLabel(new Label(this, _("Magic School:"))), mSchoolDropDown(new DropDown(this, mMagicSchoolModel)), - mSchoolLvlLabel(new Label(_("School level:"))), + mSchoolLvlLabel(new Label(this, _("School level:"))), mSchoolLvlField(new IntTextField(this, 0)), mCancelButton(new Button(this, _("Cancel"), "cancel", this)), mSaveButton(new Button(this, _("Save"), "save", this)), -- cgit v1.2.3-70-g09d2