diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-19 15:54:49 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-19 15:54:49 +0800 |
commit | a3da1b34d74f912093bde50998adb92cfa8540ac (patch) | |
tree | eab6c864bad6bde83752009cc34c71327f038a00 | |
parent | 542fac1f3a32416e084fde26d2d9cf0ddc30fa5d (diff) |
Add thumb member to product
-rw-r--r-- | catalog.cxx | 3 | ||||
-rw-r--r-- | qicclient/product.hxx | 4 |
2 files changed, 7 insertions, 0 deletions
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; |