summaryrefslogtreecommitdiff
path: root/interchange
diff options
context:
space:
mode:
Diffstat (limited to 'interchange')
-rw-r--r--interchange/ord.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/interchange/ord.hxx b/interchange/ord.hxx
index 985f923..7405c55 100644
--- a/interchange/ord.hxx
+++ b/interchange/ord.hxx
@@ -11,13 +11,16 @@ namespace QInterchange {
struct Item
{
enum ItemRoles {
- QuantityRole = Product::PriceRole + 1
+ QuantityRole = Product::PriceRole + 1,
+ NameRole
};
Item(interchange_ord_item item) :
product{item.product},
- quantity{item.quantity} {}
+ quantity{item.quantity},
+ name{item.name} {}
Product product;
unsigned int quantity;
+ QString name;
bool operator==(Item const& item)
{
return product.sku == item.product.sku;