From f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 01:45:57 +0300 Subject: Add palette inheritance to textfield class. --- src/gui/itemamountwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/itemamountwindow.cpp') diff --git a/src/gui/itemamountwindow.cpp b/src/gui/itemamountwindow.cpp index a11740f5b..5e29f130c 100644 --- a/src/gui/itemamountwindow.cpp +++ b/src/gui/itemamountwindow.cpp @@ -140,11 +140,11 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent, Window("", true, parent, "amount.xml"), gcn::ActionListener(), gcn::KeyListener(), - mItemAmountTextField(new IntTextField(1)), + mItemAmountTextField(new IntTextField(this, 1)), mItemPriceTextField(nullptr), mGPLabel(nullptr), mItem(item), - mItemIcon(new Icon(this, item ? item->getImage() : 0)), + mItemIcon(new Icon(this, item ? item->getImage() : nullptr)), mMax(maxRange), mUsage(usage), mItemPopup(new ItemPopup), @@ -181,7 +181,7 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent, if (mUsage == ShopBuyAdd || mUsage == ShopSellAdd) { // Integer field - mItemPriceTextField = new IntTextField(1); + mItemPriceTextField = new IntTextField(this, 1); mItemPriceTextField->setRange(1, 10000000); mItemPriceTextField->setWidth(35); mItemPriceTextField->addKeyListener(this); -- cgit v1.2.3-70-g09d2