summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 19:59:39 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 19:59:39 +0000
commit53800016443ed50a5b0ea27b65b39730586352d4 (patch)
tree2a73a6bc69c54b1397e02cada7fc72dac41afcb1 /src/gui/buy.cpp
parent7afe9d904f11fc65f02959798dfc6abb3660d660 (diff)
downloadMana-53800016443ed50a5b0ea27b65b39730586352d4.tar.gz
Mana-53800016443ed50a5b0ea27b65b39730586352d4.tar.bz2
Mana-53800016443ed50a5b0ea27b65b39730586352d4.tar.xz
Mana-53800016443ed50a5b0ea27b65b39730586352d4.zip
Converted sell dialog box to layout handler. Removed some useless code from buy dialog box.
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index a122783e..b95a8b25 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -64,7 +64,6 @@ BuyDialog::BuyDialog():
mIncreaseButton->setSize(20, 20);
mDecreaseButton->setSize(20, 20);
- mQuantityLabel->setWidth(60);
mScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mIncreaseButton->setEnabled(false);
@@ -72,11 +71,9 @@ BuyDialog::BuyDialog():
mBuyButton->setEnabled(false);
mSlider->setEnabled(false);
- mShopItemList->setActionEventId("item");
mSlider->setActionEventId("slider");
-
- mShopItemList->addSelectionListener(this);
mSlider->addActionListener(this);
+ mShopItemList->addSelectionListener(this);
place(0, 0, mScrollArea, 5).setPadding(3);
place(0, 1, mQuantityLabel, 2);