diff options
-rw-r--r-- | catalog.cxx | 3 | ||||
m--------- | libicclient | 0 | ||||
-rw-r--r-- | qicclient/product.hxx | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/catalog.cxx b/catalog.cxx index 5180b23..8f73565 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -29,6 +29,8 @@ namespace ICClient { return product.image; case Product::PriceRole: return product.price; + case Product::WeightRole: + return product.weight; case Product::AuthorRole: return product.author; default: @@ -44,6 +46,7 @@ namespace ICClient { , {Product::CommentRole, "comment"} , {Product::ImageRole, "image"} , {Product::PriceRole, "price"} + , {Product::WeightRole, "weight"} , {Product::AuthorRole, "author"} }; } diff --git a/libicclient b/libicclient -Subproject b81dde02f6d31b559331f813102fd2d24d9efb8 +Subproject 66225020d3ef1e3825adfc9d4f9e38420f68546 diff --git a/qicclient/product.hxx b/qicclient/product.hxx index 7ab2f99..97b13b2 100644 --- a/qicclient/product.hxx +++ b/qicclient/product.hxx @@ -13,12 +13,14 @@ namespace ICClient { CommentRole, ImageRole, PriceRole, + WeightRole, AuthorRole }; Product(icclient_product* product) : sku{product->sku}, - price{product->price} + price{product->price}, + weight{product->weight} { if (product->description) description = QString{product->description}; @@ -35,6 +37,7 @@ namespace ICClient { QString comment; QString image; double price; + double weight; QString author; }; |