summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-25 06:12:48 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-25 06:12:48 +0300
commitf55baadfeb6245899497cd472f65f23e905481b9 (patch)
treed5d3dfa758d9d46cf91bc81e0190ee67c7bc48e7 /src/gui/windows/shopwindow.cpp
parent52039744fa2e5e116548e5236cd8ba5f5d81702a (diff)
downloadmanaverse-f55baadfeb6245899497cd472f65f23e905481b9.tar.gz
manaverse-f55baadfeb6245899497cd472f65f23e905481b9.tar.bz2
manaverse-f55baadfeb6245899497cd472f65f23e905481b9.tar.xz
manaverse-f55baadfeb6245899497cd472f65f23e905481b9.zip
Remove default parameters from containerplacer.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 6ffd2649a..57406fb4b 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -181,10 +181,10 @@ ShopWindow::ShopWindow() :
mBuyShopItemList->addSelectionListener(this);
mSellShopItemList->addSelectionListener(this);
- ContainerPlacer placer;
+ ContainerPlacer placer(nullptr, nullptr);
placer = getPlacer(0, 0);
- placer(0, 0, mTabs, 8).setPadding(3);
+ placer(0, 0, mTabs, 8, 1).setPadding(3);
if (mHaveVending)
{
@@ -192,8 +192,8 @@ ShopWindow::ShopWindow() :
mPublishButton = new Button(this, _("Publish"), "publish", this);
// TRANSLATORS: shop window button
mRenameButton = new Button(this, _("Rename"), "rename", this);
- placer(2, 6, mPublishButton);
- placer(3, 6, mRenameButton);
+ placer(2, 6, mPublishButton, 1, 1);
+ placer(3, 6, mRenameButton, 1, 1);
}
else
{
@@ -203,14 +203,14 @@ ShopWindow::ShopWindow() :
mAnnounceLinks = new CheckBox(this, _("Show links in announce"), false,
this, "link announce");
- placer(2, 6, mAnnounceButton);
- placer(0, 7, mAnnounceLinks, 7);
+ placer(2, 6, mAnnounceButton, 1, 1);
+ placer(0, 7, mAnnounceLinks, 7, 1);
}
placer(0, 1, mScrollArea, 8, 5).setPadding(3);
- placer(0, 6, mAddButton);
- placer(1, 6, mDeleteButton);
- placer(7, 6, mCloseButton);
+ placer(0, 6, mAddButton, 1, 1);
+ placer(1, 6, mDeleteButton, 1, 1);
+ placer(7, 6, mCloseButton, 1, 1);
Layout &layout = getLayout();
layout.setRowHeight(0, LayoutType::SET);