diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-10 19:05:53 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-10 19:05:53 +0800 |
| commit | e872a7af320b51328e286cd8c60a383d771a5bbd (patch) | |
| tree | 67c0c7ffbf0c32fbbb3c39ca8f43eeb7439ff703 /catalog.cxx | |
| parent | bd56a1c9ccd132aad386bf51dde5ef5cde77d2cf (diff) | |
Add author role to product model
Diffstat (limited to 'catalog.cxx')
| -rw-r--r-- | catalog.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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"} }; } |