diff options
-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; |