From aa7119314e1a33d908b98906d30be94eb116d02d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Mar 2018 02:22:21 +0300 Subject: Add skin parameter to all button constructors. --- src/gui/widgets/setupitem.cpp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/setupitem.cpp') diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index 507baab7d..7634a5dc9 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -373,8 +373,12 @@ void SetupItemTextField::createControls() mParent, mEventName, false); - // TRANSLATORS: setup item button - mButton = new Button(this, _("Edit"), mEventName + "_EDIT", mParent); + mButton = new Button(this, + // TRANSLATORS: setup item button + _("Edit"), + mEventName + "_EDIT", + BUTTON_SKIN, + mParent); mWidget = mTextField; mTextField->setWidth(200); fixFirstItemSize(mLabel); @@ -514,8 +518,12 @@ void SetupItemIntTextField::createControls() mTextField->setActionEventId(mEventName); mTextField->addActionListener(mParent); - // TRANSLATORS: setup item button - mButton = new Button(this, _("Edit"), mEventName + "_EDIT", mParent); + mButton = new Button(this, + // TRANSLATORS: setup item button + _("Edit"), + mEventName + "_EDIT", + BUTTON_SKIN, + mParent); mWidget = mTextField; mTextField->setWidth(50); fixFirstItemSize(mLabel); @@ -1293,8 +1301,12 @@ SetupItemSound::SetupItemSound(const std::string &restrict text, void SetupItemSound::addMoreControls() { - mButton = new Button(this, BUTTON_PLAY, 16, 16, - mEventName + "_PLAY", this); + mButton = new Button(this, + BUTTON_PLAY, + 16, 16, + mEventName + "_PLAY", + BUTTON_SKIN, + this); if (mHorizont != nullptr) mHorizont->add(mButton); } -- cgit v1.2.3-70-g09d2