diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
commit | aa7119314e1a33d908b98906d30be94eb116d02d (patch) | |
tree | a99092b16529937c20c6ec3a7d00d7f69eabfe35 /src/gui/widgets/setupitem.cpp | |
parent | 0424b1383e3c07192b4493d5210b4384b5a69a75 (diff) | |
download | manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.gz manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.bz2 manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.xz manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.zip |
Add skin parameter to all button constructors.
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r-- | src/gui/widgets/setupitem.cpp | 24 |
1 files changed, 18 insertions, 6 deletions
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); } |