summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.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/shopwindow.cpp
parent0424b1383e3c07192b4493d5210b4384b5a69a75 (diff)
downloadplus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.gz
plus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.bz2
plus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.xz
plus-aa7119314e1a33d908b98906d30be94eb116d02d.zip
Add skin parameter to all button constructors.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp30
1 files changed, 21 insertions, 9 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 754cf7eb9..91c7063de 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -111,7 +111,7 @@ ShopWindow::ShopWindow() :
ActionListener(),
SelectionListener(),
// TRANSLATORS: shop window button
- mCloseButton(new Button(this, _("Close"), "close", this)),
+ mCloseButton(new Button(this, _("Close"), "close", BUTTON_SKIN, this)),
mBuyShopItems(new ShopItems(false, DEFAULT_CURRENCY)),
mSellShopItems(new ShopItems(false, DEFAULT_CURRENCY)),
mTradeItem(nullptr),
@@ -124,9 +124,9 @@ ShopWindow::ShopWindow() :
fromBool(getOptionBool("showbuybackground", false), Opaque),
"shop_buy_background.xml")),
// TRANSLATORS: shop window label
- mAddButton(new Button(this, _("Add"), "add", this)),
+ mAddButton(new Button(this, _("Add"), "add", BUTTON_SKIN, this)),
// TRANSLATORS: shop window label
- mDeleteButton(new Button(this, _("Delete"), "delete", this)),
+ mDeleteButton(new Button(this, _("Delete"), "delete", BUTTON_SKIN, this)),
mAnnounceButton(nullptr),
mPublishButton(nullptr),
mRenameButton(nullptr),
@@ -191,17 +191,29 @@ ShopWindow::ShopWindow() :
if (mHaveVending)
{
- // TRANSLATORS: shop window button
- mPublishButton = new Button(this, _("Publish"), "publish", this);
- // TRANSLATORS: shop window button
- mRenameButton = new Button(this, _("Rename"), "rename", this);
+ mPublishButton = new Button(this,
+ // TRANSLATORS: shop window button
+ _("Publish"),
+ "publish",
+ BUTTON_SKIN,
+ this);
+ mRenameButton = new Button(this,
+ // TRANSLATORS: shop window button
+ _("Rename"),
+ "rename",
+ BUTTON_SKIN,
+ this);
placer(2, 6, mPublishButton, 1, 1);
placer(3, 6, mRenameButton, 1, 1);
}
else
{
- // TRANSLATORS: shop window button
- mAnnounceButton = new Button(this, _("Announce"), "announce", this);
+ mAnnounceButton = new Button(this,
+ // TRANSLATORS: shop window button
+ _("Announce"),
+ "announce",
+ BUTTON_SKIN,
+ this);
// TRANSLATORS: shop window checkbox
mAnnounceLinks = new CheckBox(this, _("Show links in announce"), false,
this, "link announce");