summaryrefslogtreecommitdiff
path: root/Catalog.qml
blob: 46923cef70ee1e39a3871b7c6fae5211ece60be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import QtQuick 2.15
import QtQuick.Controls 2.15
import "qicpos"

Rectangle {
	property string arg
	color: "#0a0a0a"
	ListView {
		objectName: "catalog"
		anchors.fill: parent
		model: catalog
		spacing: 16
		delegate: ProductForm {
			width: 328
			height: 132
			color: "#2a2a2a"
			anchors.horizontalCenter: parent.horizontalCenter
			previewImage {
				width: 64
				height: 64
				source: arg + "items/" + image
			}
			nameLabel.text: description
			priceLabel.text: price
		}

		ScrollBar.horizontal: ScrollBar {}
	}
}