diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-28 14:59:38 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-28 14:59:38 +0000 |
commit | aea08a9368265c6afd6741fa84c97491552bfb84 (patch) | |
tree | 9693e7c9bfbafd9cbb7b1ad5b1b19227c074d158 /src/gui/inventorywindow.cpp | |
parent | c450af8c731fa8dfaa127a4cfe3ad588ede60658 (diff) | |
download | mana-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.cpp | 10 |
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) { |