summaryrefslogtreecommitdiff
path: root/src/gui/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 02:23:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit0153e8fa499b7bbdd712339bfb3921ead15a37a2 (patch)
tree0e12bc130aa40d3bc41f86e16754f060b450977e /src/gui/tradewindow.cpp
parent4c7a11b639ec94c8a32a9a52e99652c464745037 (diff)
downloadmanaverse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.gz
manaverse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.bz2
manaverse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.tar.xz
manaverse-0153e8fa499b7bbdd712339bfb3921ead15a37a2.zip
Add palette inheritance to label class.
Diffstat (limited to 'src/gui/tradewindow.cpp')
-rw-r--r--src/gui/tradewindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp
index f5f593b2e..46a9179b5 100644
--- a/src/gui/tradewindow.cpp
+++ b/src/gui/tradewindow.cpp
@@ -67,7 +67,7 @@ TradeWindow::TradeWindow():
mPartnerInventory(new Inventory(Inventory::TRADE)),
mMyItemContainer(new ItemContainer(this, mMyInventory.get())),
mPartnerItemContainer(new ItemContainer(this, mPartnerInventory.get())),
- mMoneyLabel(new Label(strprintf(_("You get %s"), ""))),
+ mMoneyLabel(new Label(this, strprintf(_("You get %s"), ""))),
mAddButton(new Button(this, _("Add"), "add", this)),
mOkButton(new Button(this, "", "", this)), // Will be filled in later
mMoneyChangeButton(new Button(this, _("Change"), "money", this)),
@@ -112,7 +112,7 @@ TradeWindow::TradeWindow():
true, "trade_background.xml");
partnerScroll->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER);
- Label *const moneyLabel2 = new Label(_("You give:"));
+ Label *const moneyLabel2 = new Label(this, _("You give:"));
mMoneyField->setWidth(40);