diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 00:52:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 41adf71a823f475b7f12b00e06056b778311da84 (patch) | |
tree | 55925f737e884f756d05a71238f207c03070a7ad /src/gui/inventorywindow.cpp | |
parent | 504219f9df4b9dda139dd832e263a136e51c4851 (diff) | |
download | manaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.gz manaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2 manaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.xz manaverse-41adf71a823f475b7f12b00e06056b778311da84.zip |
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 4446d2958..ba4180914 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -177,12 +177,12 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): longestUseString = unequip; } - mUseButton = new Button(longestUseString, "use", this); - mDropButton = new Button(_("Drop..."), "drop", this); - mSplitButton = new Button(_("Split"), "split", this); - mOutfitButton = new Button(_("Outfits"), "outfit", this); - mShopButton = new Button(_("Shop"), "shop", this); - mEquipmentButton = new Button(_("Equipment"), "equipment", this); + mUseButton = new Button(this, longestUseString, "use", this); + mDropButton = new Button(this, _("Drop..."), "drop", this); + mSplitButton = new Button(this, _("Split"), "split", this); + mOutfitButton = new Button(this, _("Outfits"), "outfit", this); + mShopButton = new Button(this, _("Shop"), "shop", this); + mEquipmentButton = new Button(this, _("Equipment"), "equipment", this); mWeightBar = new ProgressBar(0.0f, 100, 0, Theme::PROG_WEIGHT); place(0, 0, mWeightBar, 4); @@ -204,9 +204,9 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): } else { - mStoreButton = new Button(_("Store"), "store", this); - mRetrieveButton = new Button(_("Retrieve"), "retrieve", this); - mCloseButton = new Button(_("Close"), "close", this); + mStoreButton = new Button(this, _("Store"), "store", this); + mRetrieveButton = new Button(this, _("Retrieve"), "retrieve", this); + mCloseButton = new Button(this, _("Close"), "close", this); mSlotsBarCell = &place(0, 0, mSlotsBar, 6); mSortDropDownCell = &place(6, 0, mSortDropDown, 1); |