diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-14 17:03:51 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-14 17:03:51 +0800 |
commit | 3ee30003e4ba237575c23ba9f585c9ca40d003e5 (patch) | |
tree | 2781e9e892ef4b44fae4bd955ea8dd853fc2c605 /qicclient | |
parent | 1f3b30fd4c989f69e01614b4a021546a8d69bb96 (diff) |
Add weight member to product struct
Diffstat (limited to 'qicclient')
-rw-r--r-- | qicclient/product.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
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; }; |