diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 01:49:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 376c7e4a46c2c18d117db49b143a3f138d6a81c7 (patch) | |
tree | 0488ce7aab7186cf32c22a6a5f3a275a46dae145 /src/gui/widgets | |
parent | f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8 (diff) | |
download | manaplus-376c7e4a46c2c18d117db49b143a3f138d6a81c7.tar.gz manaplus-376c7e4a46c2c18d117db49b143a3f138d6a81c7.tar.bz2 manaplus-376c7e4a46c2c18d117db49b143a3f138d6a81c7.tar.xz manaplus-376c7e4a46c2c18d117db49b143a3f138d6a81c7.zip |
Add palette inheritance to itemcontainer class.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 5 | ||||
-rw-r--r-- | src/gui/widgets/itemcontainer.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index adf1188e4..159a06d19 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -151,10 +151,11 @@ class SortItemTypeFunctor final } } itemTypeSorter; -ItemContainer::ItemContainer(Inventory *const inventory, +ItemContainer::ItemContainer(const Widget2 *const widget, + Inventory *const inventory, const bool forceQuantity) : gcn::Widget(), - Widget2(), + Widget2(widget), gcn::KeyListener(), gcn::MouseListener(), gcn::WidgetListener(), diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h index 7801e0cc9..87ccfe7df 100644 --- a/src/gui/widgets/itemcontainer.h +++ b/src/gui/widgets/itemcontainer.h @@ -65,7 +65,8 @@ class ItemContainer final : public gcn::Widget, * @param gridRows Amount of rows in grid. * @param offset Index offset */ - ItemContainer(Inventory *const inventory, + ItemContainer(const Widget2 *const widget, + Inventory *const inventory, const bool forceQuantity = false); A_DELETE_COPY(ItemContainer) |