summaryrefslogtreecommitdiff
path: root/src/gui/trade.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 21:40:25 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 21:40:25 +0000
commitaa6a0b7b75bc05e51805b6f377ca6278f1f58436 (patch)
tree718c211089348a3b67641d16821a98ae88de0285 /src/gui/trade.cpp
parentd0333c99e0ff4c5510875bf8993056875d6c93af (diff)
downloadmana-client-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.gz
mana-client-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.bz2
mana-client-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.xz
mana-client-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.zip
Added automatic widget cleanup to the window class.
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r--src/gui/trade.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp
index 818b8b61..bd8b95c5 100644
--- a/src/gui/trade.cpp
+++ b/src/gui/trade.cpp
@@ -106,10 +106,10 @@ TradeWindow::TradeWindow():
moneyField->setPosition(8 + 60, getHeight() - 20);
moneyField->setWidth(50);
-
+
moneyLabel->setPosition(8 + 60 + 50 + 6, getHeight() - 20);
moneyLabel2->setPosition(8, getHeight() - 20);
-
+
cancelButton->setPosition(getWidth() - 48, getHeight() - 49);
tradeButton->setPosition(cancelButton->getX() - 40
, getHeight() - 49);
@@ -136,19 +136,8 @@ TradeWindow::TradeWindow():
TradeWindow::~TradeWindow()
{
- delete addButton;
- delete okButton;
- delete cancelButton;
- delete tradeButton;
delete myItemContainer;
- delete myScroll;
delete partnerItemContainer;
- delete partnerScroll;
- delete itemNameLabel;
- delete itemDescriptionLabel;
- delete moneyField;
- delete moneyLabel;
- delete moneyLabel2;
delete myInventory;
delete partnerInventory;