From 5b457c0d69377c786436476d67476eee1c922462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 15 May 2023 11:54:37 +0800 Subject: Add optionType to item --- ord.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ord.cxx b/ord.cxx index 0a4e67c..6995ed1 100644 --- a/ord.cxx +++ b/ord.cxx @@ -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" } }; -- cgit v1.2.3