summaryrefslogtreecommitdiff
path: root/src/gui/models/shopitems.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-03 20:09:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-03 20:09:53 +0300
commit602fd127d09c995bc5470218c862b2cebfc558d5 (patch)
tree6937760eb81a234c2aaf9c7494f6bce02176a2f5 /src/gui/models/shopitems.h
parentfef6ebca9c454f99d44e950c4628270b124c445f (diff)
downloadplus-602fd127d09c995bc5470218c862b2cebfc558d5.tar.gz
plus-602fd127d09c995bc5470218c862b2cebfc558d5.tar.bz2
plus-602fd127d09c995bc5470218c862b2cebfc558d5.tar.xz
plus-602fd127d09c995bc5470218c862b2cebfc558d5.zip
Add filter into buy dialogs.
Diffstat (limited to 'src/gui/models/shopitems.h')
-rw-r--r--src/gui/models/shopitems.h7
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. */