diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-15 08:59:24 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-15 08:59:24 +0800 |
commit | bc3a49fb9a722e224973898ced5b8d1fe0a82ecd (patch) | |
tree | cb271f639182345fb8c20af28180e5f7e995a1a8 | |
parent | 69572ddf45733862bc6b623091af25e396b0d06f (diff) |
Add prodGroup member to Product struct
-rw-r--r-- | catalog.cxx | 3 | ||||
m--------- | libicclient | 0 | ||||
-rw-r--r-- | qicclient/product.hxx | 4 |
3 files changed, 7 insertions, 0 deletions
diff --git a/catalog.cxx b/catalog.cxx index 8f73565..549c7b3 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -29,6 +29,8 @@ namespace ICClient { return product.image; case Product::PriceRole: return product.price; + case Product::ProdGroupRole: + return product.prodGroup; case Product::WeightRole: return product.weight; case Product::AuthorRole: @@ -46,6 +48,7 @@ namespace ICClient { , {Product::CommentRole, "comment"} , {Product::ImageRole, "image"} , {Product::PriceRole, "price"} + , {Product::ProdGroupRole, "prodGroup"} , {Product::WeightRole, "weight"} , {Product::AuthorRole, "author"} }; diff --git a/libicclient b/libicclient -Subproject 66225020d3ef1e3825adfc9d4f9e38420f68546 +Subproject fbad60cda7587ccb8acd53e8bbef12a485f6286 diff --git a/qicclient/product.hxx b/qicclient/product.hxx index d07339d..3b47241 100644 --- a/qicclient/product.hxx +++ b/qicclient/product.hxx @@ -13,6 +13,7 @@ namespace ICClient { CommentRole, ImageRole, PriceRole, + ProdGroupRole, WeightRole, AuthorRole }; @@ -29,6 +30,8 @@ namespace ICClient { comment = QString{product->comment}; if (product->image) image = QString{product->image}; + if (product->prod_group) + prodGroup = QString{product->prod_group}; if (product->author) author = QString{product->author}; } @@ -38,6 +41,7 @@ namespace ICClient { QString comment; QString image; double price; + QString prodGroup; double weight; QString author; }; |