summaryrefslogtreecommitdiff
path: root/src/gui/itemamountwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 00:52:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit41adf71a823f475b7f12b00e06056b778311da84 (patch)
tree55925f737e884f756d05a71238f207c03070a7ad /src/gui/itemamountwindow.cpp
parent504219f9df4b9dda139dd832e263a136e51c4851 (diff)
downloadmanaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.gz
manaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2
manaplus-41adf71a823f475b7f12b00e06056b778311da84.tar.xz
manaplus-41adf71a823f475b7f12b00e06056b778311da84.zip
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/itemamountwindow.cpp')
-rw-r--r--src/gui/itemamountwindow.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/gui/itemamountwindow.cpp b/src/gui/itemamountwindow.cpp
index 4e6e80f88..dbbe2d50f 100644
--- a/src/gui/itemamountwindow.cpp
+++ b/src/gui/itemamountwindow.cpp
@@ -205,11 +205,11 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent,
// Buttons
- Button *const minusAmountButton = new Button(_("-"), "dec", this);
- Button *const plusAmountButton = new Button(_("+"), "inc", this);
- Button *const okButton = new Button(_("OK"), "ok", this);
- Button *const cancelButton = new Button(_("Cancel"), "cancel", this);
- Button *const addAllButton = new Button(_("All"), "all", this);
+ Button *const minusAmountButton = new Button(this, _("-"), "dec", this);
+ Button *const plusAmountButton = new Button(this, _("+"), "inc", this);
+ Button *const okButton = new Button(this, _("OK"), "ok", this);
+ Button *const cancelButton = new Button(this, _("Cancel"), "cancel", this);
+ Button *const addAllButton = new Button(this, _("All"), "all", this);
minusAmountButton->adjustSize();
minusAmountButton->setWidth(plusAmountButton->getWidth());
@@ -233,8 +233,10 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent,
if (mUsage == ShopBuyAdd || mUsage == ShopSellAdd)
{
- Button *const minusPriceButton = new Button(_("-"), "decPrice", this);
- Button *const plusPriceButton = new Button(_("+"), "incPrice", this);
+ Button *const minusPriceButton = new Button(
+ this, _("-"), "decPrice", this);
+ Button *const plusPriceButton = new Button(
+ this, _("+"), "incPrice", this);
minusPriceButton->adjustSize();
minusPriceButton->setWidth(plusPriceButton->getWidth());