From e872a7af320b51328e286cd8c60a383d771a5bbd 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: Wed, 10 Jun 2020 19:05:53 +0800 Subject: Add author role to product model --- catalog.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'catalog.cxx') diff --git a/catalog.cxx b/catalog.cxx index 8cdc64a..5180b23 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -29,6 +29,8 @@ namespace ICClient { return product.image; case Product::PriceRole: return product.price; + case Product::AuthorRole: + return product.author; default: return QVariant(); } @@ -42,6 +44,7 @@ namespace ICClient { , {Product::CommentRole, "comment"} , {Product::ImageRole, "image"} , {Product::PriceRole, "price"} + , {Product::AuthorRole, "author"} }; } -- cgit v1.2.3