From f1503bf1a34cdb7b66171a2772108e7475ea792a 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: Sun, 19 Feb 2023 15:48:18 +0800 Subject: Add product title --- catalog.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'catalog.cxx') diff --git a/catalog.cxx b/catalog.cxx index b971525..395412c 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -29,6 +29,8 @@ namespace QInterchange { switch (role) { case Product::SkuRole: return product.sku; + case Product::TitleRole: + return product.title; case Product::DescriptionRole: return product.description; case Product::CommentRole: @@ -56,6 +58,7 @@ namespace QInterchange { { return QHash{ { Product::SkuRole, "sku" }, + { Product::TitleRole, "title" }, { Product::DescriptionRole, "description" }, { Product::CommentRole, "comment" }, { Product::ThumbRole, "thumb" }, -- cgit v1.2.3