summaryrefslogtreecommitdiff
path: root/Catalog.qml
blob: be144c5c156d5fc47b8e5e51ef6bbaa0be09a725 (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
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 {}
	}
}