summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-12-28 02:46:43 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-09 07:11:09 +0100
commit91306f28b85b553254853cc5e07e4beffbc15dea (patch)
tree1b49e01785c5724fc7a4561e3aebe6e53522565b
parentec29cd47e3cfa1562cea2766659c36c363ce90a0 (diff)
downloadmana-91306f28b85b553254853cc5e07e4beffbc15dea.tar.gz
mana-91306f28b85b553254853cc5e07e4beffbc15dea.tar.bz2
mana-91306f28b85b553254853cc5e07e4beffbc15dea.tar.xz
mana-91306f28b85b553254853cc5e07e4beffbc15dea.zip
Gave a bit more space to the equip/unequip button.
The correct solution will be to make the buttons aware of each others and it seems the placer can't do that atm. But let's add that after the release.
-rw-r--r--src/gui/inventorywindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 2a899fe2..0bf2b313 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -121,8 +121,8 @@ InventoryWindow::InventoryWindow(Inventory *inventory):
place(0, 2, invenScroll, 8).setPadding(3);
place(0, 3, mUseButton);
place(1, 3, mEquipButton);
- place(2, 3, mDropButton);
- place(3, 3, mSplitButton);
+ place(3, 3, mDropButton);
+ place(4, 3, mSplitButton);
place(7, 3, mOutfitButton);
updateWeight();
@@ -371,6 +371,8 @@ void InventoryWindow::updateButtons()
else
mEquipButton->setEnabled(false);
+ mEquipButton->adjustSize();
+
mUseButton->setEnabled(item->getInfo().getActivatable());
if (item->getQuantity() > 1)
@@ -382,6 +384,8 @@ void InventoryWindow::updateButtons()
mSplitButton->setEnabled(true);
else
mSplitButton->setEnabled(false);
+
+ mSplitButton->adjustSize();
}
void InventoryWindow::setSplitAllowed(bool allowed)