summaryrefslogtreecommitdiff
path: root/src/gui/windows/itemamountwindow.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/itemamountwindow.cpp
parent52039744fa2e5e116548e5236cd8ba5f5d81702a (diff)
downloadmv-f55baadfeb6245899497cd472f65f23e905481b9.tar.gz
mv-f55baadfeb6245899497cd472f65f23e905481b9.tar.bz2
mv-f55baadfeb6245899497cd472f65f23e905481b9.tar.xz
mv-f55baadfeb6245899497cd472f65f23e905481b9.zip
Remove default parameters from containerplacer.
Diffstat (limited to 'src/gui/windows/itemamountwindow.cpp')
-rw-r--r--src/gui/windows/itemamountwindow.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 75a2361bf..d8e1c3da0 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -208,21 +208,21 @@ ItemAmountWindow::ItemAmountWindow(const ItemAmountWindowUsageT usage,
minusAmountButton->setWidth(plusAmountButton->getWidth());
// Set positions
- ContainerPlacer placer;
+ ContainerPlacer placer(nullptr, nullptr);
placer = getPlacer(0, 0);
int n = 0;
if (mUsage == ItemAmountWindowUsage::ShopBuyAdd)
{
- placer(0, n, mItemDropDown, 8);
+ placer(0, n, mItemDropDown, 8, 1);
n++;
}
- placer(1, n, minusAmountButton);
- placer(2, n, mItemAmountTextField, 3);
- placer(5, n, plusAmountButton);
- placer(6, n, addAllButton);
+ placer(1, n, minusAmountButton, 1, 1);
+ placer(2, n, mItemAmountTextField, 3, 1);
+ placer(5, n, plusAmountButton, 1, 1);
+ placer(6, n, addAllButton, 1, 1);
placer(0, n, mItemIcon, 1, 3);
- placer(1, n + 1, mItemAmountSlide, 7);
+ placer(1, n + 1, mItemAmountSlide, 7, 1);
if (mUsage == ItemAmountWindowUsage::ShopBuyAdd ||
mUsage == ItemAmountWindowUsage::ShopSellAdd)
@@ -236,19 +236,19 @@ ItemAmountWindow::ItemAmountWindow(const ItemAmountWindowUsageT usage,
minusPriceButton->adjustSize();
minusPriceButton->setWidth(plusPriceButton->getWidth());
- placer(1, n + 2, minusPriceButton);
- placer(2, n + 2, mItemPriceTextField, 3);
- placer(5, n + 2, plusPriceButton);
- placer(6, n + 2, mGPLabel);
+ placer(1, n + 2, minusPriceButton, 1, 1);
+ placer(2, n + 2, mItemPriceTextField, 3, 1);
+ placer(5, n + 2, plusPriceButton, 1, 1);
+ placer(6, n + 2, mGPLabel, 1, 1);
- placer(1, n + 3, mItemPriceSlide, 7);
- placer(4, n + 5, cancelButton);
- placer(5, n + 5, okButton);
+ placer(1, n + 3, mItemPriceSlide, 7, 1);
+ placer(4, n + 5, cancelButton, 1, 1);
+ placer(5, n + 5, okButton, 1, 1);
}
else
{
- placer(4, n + 2, cancelButton);
- placer(5, n + 2, okButton);
+ placer(4, n + 2, cancelButton, 1, 1);
+ placer(5, n + 2, okButton, 1, 1);
}
reflowLayout(225, 0);