summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-23 20:09:45 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-23 20:09:45 +0800
commit0d802e5a97ff21c2df1e0b55ac69b41ef856fc86 (patch)
tree0d7c831c9710d3e7aec457e1d18e7d3ad5b6f177
parent2924e9a4e7a5c371e7096daeb5b1d3a2b1860d46 (diff)
Image role on Ord
-rw-r--r--ord.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/ord.cxx b/ord.cxx
index 4a729df..1de7447 100644
--- a/ord.cxx
+++ b/ord.cxx
@@ -20,6 +20,8 @@ namespace QICClient {
return item.product.sku;
case Product::DescriptionRole:
return item.product.description;
+ case Product::ImageRole:
+ return item.product.image;
case Product::PriceRole:
return item.product.price;
case Item::QuantityRole:
@@ -34,6 +36,7 @@ namespace QICClient {
return QHash<int, QByteArray>{
{ Product::SkuRole, "sku" },
{ Product::DescriptionRole, "description" },
+ { Product::ImageRole, "image" },
{ Product::PriceRole, "price" },
{ Item::QuantityRole, "quantity" }
};