summaryrefslogtreecommitdiff
path: root/catalog.cxx
diff options
context:
space:
mode:
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 b971525..395412c 100644
--- a/catalog.cxx
+++ b/catalog.cxx
@@ -29,6 +29,8 @@ namespace QInterchange {
switch (role) {
case Product::SkuRole:
return product.sku;
+ case Product::TitleRole:
+ return product.title;
case Product::DescriptionRole:
return product.description;
case Product::CommentRole:
@@ -56,6 +58,7 @@ namespace QInterchange {
{
return QHash<int, QByteArray>{
{ Product::SkuRole, "sku" },
+ { Product::TitleRole, "title" },
{ Product::DescriptionRole, "description" },
{ Product::CommentRole, "comment" },
{ Product::ThumbRole, "thumb" },