blob: ba4d22c63868db8d53323af4288e482d456b5814 (
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
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
}
FontLoader {
id: robotoMonoBold
source: "../fonts/RobotoMono-Bold.ttf"
}
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
}
}
}
|