From a3da1b34d74f912093bde50998adb92cfa8540ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Fri, 19 Jun 2020 15:54:49 +0800 Subject: Add thumb member to product --- catalog.cxx | 3 +++ qicclient/product.hxx | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/catalog.cxx b/catalog.cxx index 6bb9499..6ddbe1b 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -25,6 +25,8 @@ namespace ICClient { return product.description; case Product::CommentRole: return product.comment; + case Product::ThumbRole: + return product.thumb; case Product::ImageRole: return product.image; case Product::PriceRole: @@ -48,6 +50,7 @@ namespace ICClient { {Product::SkuRole, "sku"} , {Product::DescriptionRole, "description"} , {Product::CommentRole, "comment"} + , {Product::ThumbRole, "thumb"} , {Product::ImageRole, "image"} , {Product::PriceRole, "price"} , {Product::ProdGroupRole, "prodGroup"} diff --git a/qicclient/product.hxx b/qicclient/product.hxx index b2abdeb..ec5125b 100644 --- a/qicclient/product.hxx +++ b/qicclient/product.hxx @@ -11,6 +11,7 @@ namespace ICClient { SkuRole = Qt::UserRole + 1, DescriptionRole, CommentRole, + ThumbRole, ImageRole, PriceRole, ProdGroupRole, @@ -29,6 +30,8 @@ namespace ICClient { description = QString{product->description}; if (product->comment) comment = QString{product->comment}; + if (product->thumb) + thumb = QString{product->thumb}; if (product->image) image = QString{product->image}; if (product->prod_group) @@ -45,6 +48,7 @@ namespace ICClient { QString sku; QString description; QString comment; + QString thumb; QString image; double price; QString prodGroup; -- cgit v1.2.3