summaryrefslogtreecommitdiff
path: root/Catalog.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Catalog.qml')
-rw-r--r--Catalog.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/Catalog.qml b/Catalog.qml
new file mode 100644
index 0000000..be144c5
--- /dev/null
+++ b/Catalog.qml
@@ -0,0 +1,28 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import "qicpos"
+
+Rectangle {
+ color: "#0a0a0a"
+ ListView {
+ anchors.fill: parent
+ objectName: "catalog"
+ model: catalog
+ spacing: 16
+ delegate: ProductForm {
+ width: 328
+ height: 132
+ color: "#2a2a2a"
+ anchors.horizontalCenter: parent.horizontalCenter
+ previewImage {
+ width: 64
+ height: 64
+ source: imageDir + "thumb/" + image
+ }
+ nameLabel.text: description
+ priceLabel.text: price
+ }
+
+ ScrollBar.horizontal: ScrollBar {}
+ }
+}