From f8dbe8e0f771949f83e91b5e37a690e571a047ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 4 Jul 2021 15:29:04 +0800 Subject: Separated client code --- Catalog.qml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Catalog.qml (limited to 'Catalog.qml') 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 {} + } +} -- cgit v1.2.3