diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-15 11:54:37 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-05-15 11:54:37 +0800 |
commit | 5b457c0d69377c786436476d67476eee1c922462 (patch) | |
tree | 7a2011af4c82d59e6d980e9b658f4ccddfbc4215 | |
parent | 5ff062e598afab8c8807003ef346b3b3d75b9f74 (diff) |
Add optionType to item
-rw-r--r-- | ord.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -44,6 +44,8 @@ namespace QInterchange { return item.product.image; case Product::PriceRole: return item.product.price; + case Product::OptionTypeRole: + return item.product.optionType; case Item::QuantityRole: return item.quantity; case Item::NameRole: @@ -61,6 +63,7 @@ namespace QInterchange { { Product::DescriptionRole, "description" }, { Product::ImageRole, "image" }, { Product::PriceRole, "price" }, + { Product::OptionTypeRole, "optionType" }, { Item::QuantityRole, "quantity" }, { Item::NameRole, "name" } }; |