diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-09-30 19:19:47 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-09-30 19:19:47 +0000 |
commit | 5cf5f65fd67cbae98a54479f0cba8be0f2876bd3 (patch) | |
tree | 27d88a06cbbd36765ce5c3af05f35adcc6e7b4c2 /src/gui/inventorywindow.cpp | |
parent | 232c094b842e1540e9fd4b719894c4b3a4136659 (diff) | |
download | mana-client-5cf5f65fd67cbae98a54479f0cba8be0f2876bd3.tar.gz mana-client-5cf5f65fd67cbae98a54479f0cba8be0f2876bd3.tar.bz2 mana-client-5cf5f65fd67cbae98a54479f0cba8be0f2876bd3.tar.xz mana-client-5cf5f65fd67cbae98a54479f0cba8be0f2876bd3.zip |
Made the inventory Win behave normally when resized by default size functions.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index af6c437e..3c373165 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -80,7 +80,6 @@ InventoryWindow::InventoryWindow(): add(itemEffectLabel); add(weightLabel); - updateWidgets(); useButton->setSize(48, useButton->getHeight()); loadWindowState(); @@ -235,3 +234,20 @@ Item* InventoryWindow::getItem() { return items->getItem(); } + +void InventoryWindow::loadWindowState() +{ + Window::loadWindowState(); + updateWidgets(); +} + +void InventoryWindow::setDefaultSize(int defaultX, int defaultY, int defaultWidth, int defaultHeight) +{ + Window::setDefaultSize(defaultX, defaultY, defaultWidth, defaultHeight); +} + +void InventoryWindow::resetToDefaultSize() +{ + Window::resetToDefaultSize(); + updateWidgets(); +} |