summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-28 14:59:38 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-28 14:59:38 +0000
commitaea08a9368265c6afd6741fa84c97491552bfb84 (patch)
tree9693e7c9bfbafd9cbb7b1ad5b1b19227c074d158 /src/gui/inventorywindow.cpp
parentc450af8c731fa8dfaa127a4cfe3ad588ede60658 (diff)
downloadmana-client-aea08a9368265c6afd6741fa84c97491552bfb84.tar.gz
mana-client-aea08a9368265c6afd6741fa84c97491552bfb84.tar.bz2
mana-client-aea08a9368265c6afd6741fa84c97491552bfb84.tar.xz
mana-client-aea08a9368265c6afd6741fa84c97491552bfb84.zip
Separated auto-resizing into two categories: "set" and "add". Removed useless code.
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) {