diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-19 15:48:18 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-19 15:48:18 +0800 |
| commit | f1503bf1a34cdb7b66171a2772108e7475ea792a (patch) | |
| tree | 35bbf79c8b503f2092ae732ed95f0f494b6e74f4 /ord.cxx | |
| parent | b21dce3485058b8764500f1efc9f46bea5f7c890 (diff) | |
Add product title
Diffstat (limited to 'ord.cxx')
| -rw-r--r-- | ord.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -36,6 +36,8 @@ namespace QInterchange { switch (role) { case Product::SkuRole: return item.product.sku; + case Product::TitleRole: + return item.product.title; case Product::DescriptionRole: return item.product.description; case Product::ImageRole: @@ -53,6 +55,7 @@ namespace QInterchange { { return QHash<int, QByteArray>{ { Product::SkuRole, "sku" }, + { Product::TitleRole, "title" }, { Product::DescriptionRole, "description" }, { Product::ImageRole, "image" }, { Product::PriceRole, "price" }, |