From 3ee30003e4ba237575c23ba9f585c9ca40d003e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 14 Jun 2020 17:03:51 +0800 Subject: Add weight member to product struct --- qicclient/product.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qicclient') 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; }; -- cgit v1.2.3