summaryrefslogtreecommitdiff
path: root/catalog.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-14 17:03:51 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-14 17:03:51 +0800
commit3ee30003e4ba237575c23ba9f585c9ca40d003e5 (patch)
tree2781e9e892ef4b44fae4bd955ea8dd853fc2c605 /catalog.cxx
parent1f3b30fd4c989f69e01614b4a021546a8d69bb96 (diff)
Add weight member to product struct
Diffstat (limited to 'catalog.cxx')
-rw-r--r--catalog.cxx3
1 files changed, 3 insertions, 0 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"}
};
}