diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-23 20:09:45 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-23 20:09:45 +0800 |
commit | 0d802e5a97ff21c2df1e0b55ac69b41ef856fc86 (patch) | |
tree | 0d7c831c9710d3e7aec457e1d18e7d3ad5b6f177 | |
parent | 2924e9a4e7a5c371e7096daeb5b1d3a2b1860d46 (diff) |
Image role on Ord
-rw-r--r-- | ord.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" } }; |