summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-30 13:23:25 -0700
committerIra Rice <irarice@gmail.com>2009-01-30 13:23:25 -0700
commit85a02d69af733b327e4f3bb8011472de95bbba07 (patch)
tree130580cac7a307368d5c156aab42586bdc7e7a62 /src/gui/inventorywindow.cpp
parent7859699944d51056966c2f2415d1ade230c375a9 (diff)
downloadmana-client-85a02d69af733b327e4f3bb8011472de95bbba07.tar.gz
mana-client-85a02d69af733b327e4f3bb8011472de95bbba07.tar.bz2
mana-client-85a02d69af733b327e4f3bb8011472de95bbba07.tar.xz
mana-client-85a02d69af733b327e4f3bb8011472de95bbba07.zip
Moved weight and slots back to the top of the inventory window.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 58c13910..d7cd7ccd 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -91,16 +91,16 @@ InventoryWindow::InventoryWindow(int invSize):
setMinHeight(130);
setMinWidth(mWeightLabel->getWidth() + mSlotsLabel->getWidth() + 310);
- place(0, 0, mInvenScroll, 7, 4);
- place(0, 4, mWeightLabel).setPadding(3);
- place(1, 4, mWeightBar, 2);
- place(3, 4, mSlotsLabel).setPadding(3);
- place(4, 4, mSlotsBar, 2);
+ place(0, 0, mWeightLabel).setPadding(3);
+ place(1, 0, mWeightBar, 2);
+ place(3, 0, mSlotsLabel).setPadding(3);
+ place(4, 0, mSlotsBar, 2);
+ place(0, 1, mInvenScroll, 7, 4);
place(5, 5, mDropButton);
place(6, 5, mUseButton);
Layout &layout = getLayout();
- layout.setRowHeight(0, Layout::AUTO_SET);
+ layout.setRowHeight(0, mDropButton->getHeight());
loadWindowState();
setLocationRelativeTo(getParent());