summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 4621e59a..bf23a419 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -65,10 +65,6 @@ InventoryWindow::InventoryWindow():
mDropButton = new Button(_("Drop"), "drop", this);
mSplitButton = new Button(_("Split"), "split", this);
- mUseButton->adjustSize();
- mDropButton->adjustSize();
- mSplitButton->adjustSize();
-
mItems = new ItemContainer(player_node->mInventory.get(), 10, 5);
mItems->addSelectionListener(this);
@@ -93,7 +89,7 @@ InventoryWindow::InventoryWindow():
layout.setColWidth(0, 48);
layout.setColWidth(1, 48);
layout.setColWidth(2, 48);
- layout.setRowHeight(1, Layout::FILL);
+ layout.setRowHeight(1, Layout::AUTO_SET);
loadWindowState("Inventory");
}
@@ -160,10 +156,6 @@ void InventoryWindow::selectionChanged(const SelectionEvent &event)
mItemDescriptionLabel->setCaption(strprintf(_("Description: %s"),
info ? info->getDescription().c_str() : ""));
- mItemNameLabel->adjustSize();
- mItemEffectLabel->adjustSize();
- mItemDescriptionLabel->adjustSize();
-
if (mSplit)
{
if (item && !item->isEquipment() && item->getQuantity() > 1) {