summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.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/buydialog.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/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index db1dc6e50..14e3aabe0 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -371,36 +371,36 @@ void BuyDialog::init()
ContainerPlacer placer = getPlacer(0, 0);
placer(0, 0, mScrollArea, 9, 5).setPadding(3);
- placer(0, 5, mDecreaseButton);
- placer(1, 5, mSlider, 4);
- placer(5, 5, mIncreaseButton);
- placer(6, 5, mQuantityLabel, 2);
- placer(8, 5, mAddMaxButton);
- placer(0, 6, mAmountLabel, 2);
- placer(2, 6, mAmountField, 2);
- placer(0, 7, mMoneyLabel, 8);
+ placer(0, 5, mDecreaseButton, 1, 1);
+ placer(1, 5, mSlider, 4, 1);
+ placer(5, 5, mIncreaseButton, 1, 1);
+ placer(6, 5, mQuantityLabel, 2, 1);
+ placer(8, 5, mAddMaxButton, 1, 1);
+ placer(0, 6, mAmountLabel, 2, 1);
+ placer(2, 6, mAmountField, 2, 1);
+ placer(0, 7, mMoneyLabel, 8, 1);
if (mSortDropDown != nullptr)
{
- placer(0, 8, mSortDropDown, 2);
+ placer(0, 8, mSortDropDown, 2, 1);
}
else
{
// TRANSLATORS: buy dialog label
mFilterLabel = new Label(this, _("Filter:"));
mFilterLabel->adjustSize();
- placer(0, 8, mFilterLabel, 2);
+ placer(0, 8, mFilterLabel, 2, 1);
}
- placer(2, 8, mFilterTextField, 2);
+ placer(2, 8, mFilterTextField, 2, 1);
if (mAdvanced)
{
- placer(6, 8, mBuyButton);
- placer(7, 8, mConfirmButton);
+ placer(6, 8, mBuyButton, 1, 1);
+ placer(7, 8, mConfirmButton, 1, 1);
}
else
{
- placer(7, 8, mBuyButton);
+ placer(7, 8, mBuyButton, 1, 1);
}
- placer(8, 8, mQuitButton);
+ placer(8, 8, mQuitButton, 1, 1);
Layout &layout = getLayout();
layout.setRowHeight(0, LayoutType::SET);