summaryrefslogtreecommitdiff
path: root/src/gui/textcommandeditor.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 01:45:57 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commitf5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8 (patch)
tree8ab383dce47ed689137addbac041ef1f9e300faf /src/gui/textcommandeditor.cpp
parent5d02ab43ff6d3e328a3b02479c033609023edec2 (diff)
downloadmanaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.gz
manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.bz2
manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.xz
manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.zip
Add palette inheritance to textfield class.
Diffstat (limited to 'src/gui/textcommandeditor.cpp')
-rw-r--r--src/gui/textcommandeditor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/textcommandeditor.cpp b/src/gui/textcommandeditor.cpp
index 2794a83b4..05ad61a5c 100644
--- a/src/gui/textcommandeditor.cpp
+++ b/src/gui/textcommandeditor.cpp
@@ -171,11 +171,11 @@ TextCommandEditor::TextCommandEditor(TextCommand *const command) :
mIsMagic(new RadioButton(_("magic"), "magic", mIsMagicCommand)),
mIsOther(new RadioButton(_("other"), "magic", !mIsMagicCommand)),
mSymbolLabel(new Label(_("Symbol:"))),
- mSymbolTextField(new TextField()),
+ mSymbolTextField(new TextField(this)),
mCommandLabel(new Label(_("Command:"))),
- mCommandTextField(new TextField()),
+ mCommandTextField(new TextField(this)),
mCommentLabel(new Label(_("Comment:"))),
- mCommentTextField(new TextField),
+ mCommentTextField(new TextField(this)),
mTargetTypeModel(new TargetTypeModel),
mTypeLabel(new Label(_("Target Type:"))),
mTypeDropDown(new DropDown(this, mTargetTypeModel)),
@@ -183,14 +183,14 @@ TextCommandEditor::TextCommandEditor(TextCommand *const command) :
mIconLabel(new Label(_("Icon:"))),
mIconDropDown(new DropDown(this, mIconsModal)),
mManaLabel(new Label(_("Mana:"))),
- mManaField(new IntTextField(0)),
+ mManaField(new IntTextField(this, 0)),
mMagicLvlLabel(new Label(_("Magic level:"))),
- mMagicLvlField(new IntTextField(0)),
+ mMagicLvlField(new IntTextField(this, 0)),
mMagicSchoolModel(new MagicSchoolModel),
mSchoolLabel(new Label(_("Magic School:"))),
mSchoolDropDown(new DropDown(this, mMagicSchoolModel)),
mSchoolLvlLabel(new Label(_("School level:"))),
- mSchoolLvlField(new IntTextField(0)),
+ mSchoolLvlField(new IntTextField(this, 0)),
mCancelButton(new Button(this, _("Cancel"), "cancel", this)),
mSaveButton(new Button(this, _("Save"), "save", this)),
mDeleteButton(new Button(this, _("Delete"), "delete", this)),