summaryrefslogtreecommitdiff
path: root/qicclient/basket.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'qicclient/basket.hxx')
-rw-r--r--qicclient/basket.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/qicclient/basket.hxx b/qicclient/basket.hxx
index b3b5e11..7b3de2a 100644
--- a/qicclient/basket.hxx
+++ b/qicclient/basket.hxx
@@ -22,6 +22,11 @@ namespace ICClient {
Product product;
unsigned int quantity;
+
+ bool operator==(Item const& item)
+ {
+ return product.sku == item.product.sku;
+ }
};
class Basket : public QAbstractListModel