diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-27 00:43:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-27 00:43:20 +0300 |
commit | 30ba8a737da8b1811397786106085f2c13167803 (patch) | |
tree | 09e52b2fcb8ac35d3de76781de7508dc6a9c9278 /src/gui/windows/inventorywindow.cpp | |
parent | 03f4d4beaaa2ea4ac99aa746460283d4ca644a3f (diff) | |
download | manaverse-30ba8a737da8b1811397786106085f2c13167803.tar.gz manaverse-30ba8a737da8b1811397786106085f2c13167803.tar.bz2 manaverse-30ba8a737da8b1811397786106085f2c13167803.tar.xz manaverse-30ba8a737da8b1811397786106085f2c13167803.zip |
Remove default parameters from window.
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r-- | src/gui/windows/inventorywindow.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 088f67c42..d35ba037b 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -167,9 +167,9 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : setStickyButtonLock(true); if (mainGraphics->mWidth > 600) - setDefaultSize(450, 310, ImagePosition::CENTER); + setDefaultSize(450, 310, ImagePosition::CENTER, 0, 0); else - setDefaultSize(387, 307, ImagePosition::CENTER); + setDefaultSize(387, 307, ImagePosition::CENTER, 0, 0); setMinWidth(310); setMinHeight(179); addKeyListener(this); @@ -194,7 +194,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : } ScrollArea *const invenScroll = new ScrollArea(this, mItems, - fromBool(getOptionBool("showbackground"), Opaque), + fromBool(getOptionBool("showbackground", false), Opaque), "inventory_background.xml"); invenScroll->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER); @@ -274,11 +274,11 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : // TRANSLATORS: storage button mInvCloseButton = new Button(this, _("Close"), "close", this); - mSlotsBarCell = &place(0, 0, mSlotsBar, 6); - mSortDropDownCell = &place(6, 0, mSortDropDown, 1); + mSlotsBarCell = &place(0, 0, mSlotsBar, 6, 1); + mSortDropDownCell = &place(6, 0, mSortDropDown, 1, 1); - mFilterCell = &place(0, 1, mFilter, 7).setPadding(3); - mNameFilterCell = &place(6, 1, mNameFilter, 1); + mFilterCell = &place(0, 1, mFilter, 7, 1).setPadding(3); + mNameFilterCell = &place(6, 1, mNameFilter, 1, 1); place(0, 2, invenScroll, 7, 4); place(0, 6, mStoreButton, 1, 1); @@ -303,11 +303,11 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : mWeightBar->setColor(getThemeColor(ThemeColorId::WEIGHT_BAR, 255U), getThemeColor(ThemeColorId::WEIGHT_BAR_OUTLINE, 255U)); - mSlotsBarCell = &place(3, 0, mSlotsBar, 3); - mSortDropDownCell = &place(6, 0, mSortDropDown, 1); + mSlotsBarCell = &place(3, 0, mSlotsBar, 3, 1); + mSortDropDownCell = &place(6, 0, mSortDropDown, 1, 1); - mFilterCell = &place(0, 1, mFilter, 7).setPadding(3); - mNameFilterCell = &place(6, 1, mNameFilter, 1); + mFilterCell = &place(0, 1, mFilter, 7, 1).setPadding(3); + mNameFilterCell = &place(6, 1, mNameFilter, 1, 1); place(0, 0, mWeightBar, 3, 1); place(0, 2, invenScroll, 7, 4); |