From 91306f28b85b553254853cc5e07e4beffbc15dea Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 28 Dec 2011 02:46:43 +0100 Subject: 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. --- src/gui/inventorywindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui/inventorywindow.cpp') 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) -- cgit v1.2.3-70-g09d2