summaryrefslogtreecommitdiff
path: root/Catalog.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-04 15:29:04 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-04 15:29:04 +0800
commitf8dbe8e0f771949f83e91b5e37a690e571a047ee (patch)
tree50cb474a2ebe8e0e730d38186dad87912c0d5f4d /Catalog.qml
Separated client code
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 {}
+ }
+}