diff options
Diffstat (limited to 'src/gui/models/shopitems.h')
-rw-r--r-- | src/gui/models/shopitems.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/models/shopitems.h b/src/gui/models/shopitems.h index 880bc4f71..50269cff1 100644 --- a/src/gui/models/shopitems.h +++ b/src/gui/models/shopitems.h @@ -129,9 +129,14 @@ class ShopItems final : public ListModel std::vector<ShopItem*> &items() A_WARN_UNUSED { return mShopItems; } + std::vector<ShopItem*> &allItems() A_WARN_UNUSED + { return mAllShopItems; } + void setMergeDuplicates(const bool b) { mMergeDuplicates = b; } + void updateList(); + private: /** * Searches the current items in the shop for the specified @@ -143,6 +148,8 @@ class ShopItems final : public ListModel const unsigned char color) const A_WARN_UNUSED; /** The list of items in the shop. */ + std::vector<ShopItem*> mAllShopItems; + std::vector<ShopItem*> mShopItems; /** Look for duplicate entries on addition. */ |