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/windows/itemamountwindow.cpp | 54 ++++++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 14 deletions(-) (limited to 'src/gui/windows/itemamountwindow.cpp') 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()); -- cgit v1.2.3-70-g09d2