summaryrefslogtreecommitdiff
path: root/ord.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-31 14:19:05 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-31 14:19:05 +0800
commit7f4aca0bba24d4616ed78c288bc89b12ac6a3c84 (patch)
tree5b90886fb44574fd174f847507965b944a1a78fb /ord.cxx
parentdc6d4edab4584a7153edcde86ae61fb9100e780a (diff)
Add name to Item
Diffstat (limited to 'ord.cxx')
-rw-r--r--ord.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/ord.cxx b/ord.cxx
index 27893bb..c3617e3 100644
--- a/ord.cxx
+++ b/ord.cxx
@@ -47,6 +47,8 @@ namespace QInterchange {
return item.product.price;
case Item::QuantityRole:
return item.quantity;
+ case Item::NameRole:
+ return item.name;
default:
return QVariant();
}
@@ -60,7 +62,8 @@ namespace QInterchange {
{ Product::DescriptionRole, "description" },
{ Product::ImageRole, "image" },
{ Product::PriceRole, "price" },
- { Item::QuantityRole, "quantity" }
+ { Item::QuantityRole, "quantity" },
+ { Item::NameRole, "name" }
};
}