summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-09 02:22:21 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-09 02:22:21 +0300
commitaa7119314e1a33d908b98906d30be94eb116d02d (patch)
treea99092b16529937c20c6ec3a7d00d7f69eabfe35 /src/gui/windows/buydialog.cpp
parent0424b1383e3c07192b4493d5210b4384b5a69a75 (diff)
downloadmanaverse-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/windows/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index ea0946799..19c369053 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -329,17 +329,24 @@ void BuyDialog::init()
// TRANSLATORS: This is a narrow symbol used to denote 'increasing'.
// You may change this symbol if your language uses another.
- mIncreaseButton = new Button(this, _("+"), "inc", this);
+ mIncreaseButton = new Button(this, _("+"), "inc", BUTTON_SKIN, this);
// TRANSLATORS: This is a narrow symbol used to denote 'decreasing'.
// You may change this symbol if your language uses another.
- mDecreaseButton = new Button(this, _("-"), "dec", this);
+ mDecreaseButton = new Button(this, _("-"), "dec", BUTTON_SKIN, this);
mBuyButton = new Button(this, mNpcId == fromInt(Items, BeingId)
// TRANSLATORS: buy dialog button
- ? _("Create") : (mAdvanced ? _("Add") : _("Buy")), "buy", this);
+ ? _("Create") : (mAdvanced ? _("Add") : _("Buy")),
+ "buy",
+ BUTTON_SKIN,
+ this);
if (mAdvanced)
{
- // TRANSLATORS: buy dialog button
- mConfirmButton = new Button(this, _("Buy"), "confirm", this);
+ mConfirmButton = new Button(this,
+ // TRANSLATORS: buy dialog button
+ _("Buy"),
+ "confirm",
+ BUTTON_SKIN,
+ this);
mConfirmButton->setEnabled(false);
}
else
@@ -347,9 +354,9 @@ void BuyDialog::init()
mConfirmButton = nullptr;
}
// TRANSLATORS: buy dialog button
- mQuitButton = new Button(this, _("Quit"), "quit", this);
+ mQuitButton = new Button(this, _("Quit"), "quit", BUTTON_SKIN, this);
// TRANSLATORS: buy dialog button
- mAddMaxButton = new Button(this, _("Max"), "max", this);
+ mAddMaxButton = new Button(this, _("Max"), "max", BUTTON_SKIN, this);
mDecreaseButton->adjustSize();
mDecreaseButton->setWidth(mIncreaseButton->getWidth());