summaryrefslogtreecommitdiff
path: root/src/gui/windows/itemamountwindow.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/itemamountwindow.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/itemamountwindow.cpp')
-rw-r--r--src/gui/windows/itemamountwindow.cpp54
1 files changed, 40 insertions, 14 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 86a025800..c30a91780 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -198,16 +198,36 @@ ItemAmountWindow::ItemAmountWindow(const ItemAmountWindowUsageT usage,
}
// Buttons
- // TRANSLATORS: item amount window button
- Button *const minusAmountButton = new Button(this, _("-"), "dec", this);
- // TRANSLATORS: item amount window button
- Button *const plusAmountButton = new Button(this, _("+"), "inc", this);
- // TRANSLATORS: item amount window button
- Button *const okButton = new Button(this, _("OK"), "ok", this);
- // TRANSLATORS: item amount window button
- Button *const cancelButton = new Button(this, _("Cancel"), "cancel", this);
- // TRANSLATORS: item amount window button
- Button *const addAllButton = new Button(this, _("All"), "all", this);
+ Button *const minusAmountButton = new Button(this,
+ // TRANSLATORS: item amount window button
+ _("-"),
+ "dec",
+ BUTTON_SKIN,
+ this);
+ Button *const plusAmountButton = new Button(this,
+ // TRANSLATORS: item amount window button
+ _("+"),
+ "inc",
+ BUTTON_SKIN,
+ this);
+ Button *const okButton = new Button(this,
+ // TRANSLATORS: item amount window button
+ _("OK"),
+ "ok",
+ BUTTON_SKIN,
+ this);
+ Button *const cancelButton = new Button(this,
+ // TRANSLATORS: item amount window button
+ _("Cancel"),
+ "cancel",
+ BUTTON_SKIN,
+ this);
+ Button *const addAllButton = new Button(this,
+ // TRANSLATORS: item amount window button
+ _("All"),
+ "all",
+ BUTTON_SKIN,
+ this);
minusAmountButton->adjustSize();
minusAmountButton->setWidth(plusAmountButton->getWidth());
@@ -232,12 +252,18 @@ ItemAmountWindow::ItemAmountWindow(const ItemAmountWindowUsageT usage,
if (mUsage == ItemAmountWindowUsage::ShopBuyAdd ||
mUsage == ItemAmountWindowUsage::ShopSellAdd)
{
- Button *const minusPriceButton = new Button(
+ Button *const minusPriceButton = new Button(this,
// TRANSLATORS: item amount window button
- this, _("-"), "decPrice", this);
- Button *const plusPriceButton = new Button(
+ _("-"),
+ "decPrice",
+ BUTTON_SKIN,
+ this);
+ Button *const plusPriceButton = new Button(this,
// TRANSLATORS: item amount window button
- this, _("+"), "incPrice", this);
+ _("+"),
+ "incPrice",
+ BUTTON_SKIN,
+ this);
minusPriceButton->adjustSize();
minusPriceButton->setWidth(plusPriceButton->getWidth());