summaryrefslogtreecommitdiff
path: root/src/gui/widgets/selldialog.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/widgets/selldialog.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/widgets/selldialog.cpp')
-rw-r--r--src/gui/widgets/selldialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/widgets/selldialog.cpp b/src/gui/widgets/selldialog.cpp
index 68b9a039f..d60e10803 100644
--- a/src/gui/widgets/selldialog.cpp
+++ b/src/gui/widgets/selldialog.cpp
@@ -128,7 +128,7 @@ void SellDialog::postInit()
mShopItemList->setActionEventId("sell");
mShopItemList->addActionListener(this);
- ContainerPlacer placer;
+ ContainerPlacer placer(nullptr, nullptr);
placer = getPlacer(0, 0);
if (mIsSell == IsSell_true)
@@ -163,28 +163,28 @@ void SellDialog::postInit()
mSlider->addActionListener(this);
placer(0, 0, mScrollArea, 8, 5).setPadding(3);
- placer(0, 5, mDecreaseButton);
- placer(1, 5, mSlider, 3);
- placer(4, 5, mIncreaseButton);
- placer(5, 5, mQuantityLabel, 2);
- placer(7, 5, mAddMaxButton);
- placer(0, 6, mMoneyLabel, 8);
+ placer(0, 5, mDecreaseButton, 1, 1);
+ placer(1, 5, mSlider, 3, 1);
+ placer(4, 5, mIncreaseButton, 1, 1);
+ placer(5, 5, mQuantityLabel, 2, 1);
+ placer(7, 5, mAddMaxButton, 1, 1);
+ placer(0, 6, mMoneyLabel, 8, 1);
if (mAdvanced == Advanced_true)
{
- placer(5, 7, mSellButton);
- placer(6, 7, mConfirmButton);
+ placer(5, 7, mSellButton, 1, 1);
+ placer(6, 7, mConfirmButton, 1, 1);
}
else
{
- placer(6, 7, mSellButton);
+ placer(6, 7, mSellButton, 1, 1);
}
- placer(7, 7, mQuitButton);
+ placer(7, 7, mQuitButton, 1, 1);
}
else
{
placer(0, 0, mScrollArea, 8, 5).setPadding(3);
- placer(6, 5, mSellButton);
- placer(7, 5, mQuitButton);
+ placer(6, 5, mSellButton, 1, 1);
+ placer(7, 5, mQuitButton, 1, 1);
}
Layout &layout = getLayout();