From f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 01:45:57 +0300 Subject: Add palette inheritance to textfield class. --- src/gui/widgets/setupitem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/setupitem.cpp') diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index 937ce79d2..75090fd0d 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -286,7 +286,7 @@ void SetupItemTextField::createControls() mHorizont = new HorizontContainer(this, 32, 2); mLabel = new Label(mText); - mTextField = new TextField(mValue, true, mParent, mEventName); + mTextField = new TextField(this, mValue, true, mParent, mEventName); mButton = new Button(this, _("Edit"), mEventName + "_EDIT", mParent); mWidget = mTextField; mTextField->setWidth(200); @@ -407,7 +407,8 @@ void SetupItemIntTextField::createControls() mHorizont = new HorizontContainer(this, 32, 2); mLabel = new Label(mText); - mTextField = new IntTextField(atoi(mValue.c_str()), mMin, mMax, true, 30); + mTextField = new IntTextField(this, atoi(mValue.c_str()), + mMin, mMax, true, 30); mTextField->setActionEventId(mEventName); mTextField->addActionListener(mParent); -- cgit v1.2.3-70-g09d2