summaryrefslogtreecommitdiff
path: root/TicketForm.ui.qml
blob: dd3f6c1bc7a61e94b65410828b6ad01efa50a938 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import QtQuick 2.15
import QtQuick.Controls 2.15

Item {
	property alias title: title
	property alias delegate: delegate

	width: 328
	height: 64

	FontLoader {
		id: robotoMonoBold
		source: "fonts/RobotoMono-Bold.ttf"
	}

	ItemDelegate {
		id: delegate
		anchors.fill: parent

		Image {
			id: image
			width: 32
			anchors.left: parent.left
			anchors.top: parent.top
			anchors.bottom: parent.bottom
			anchors.leftMargin: 16
			anchors.topMargin: 16
			anchors.bottomMargin: 16
			fillMode: Image.PreserveAspectFit
		}

		Text {
			id: title
			width: 208
			text: qsTr("Project name")
			anchors.left: image.right
			anchors.top: parent.top
			anchors.bottom: parent.bottom
			anchors.leftMargin: 16
			anchors.topMargin: 20
			anchors.bottomMargin: 20
			lineHeight: 24
			verticalAlignment: Text.AlignVCenter
			font.family: robotoMonoBold.name
			font.bold: true
			font.pixelSize: 16
			font.letterSpacing: 0.15
		}
	}
}