blob: 8493dd4d7e39fb634f5f4c1326576fa88e62c4ba (
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
|
import QtQuick 2.0
ListView {
property bool test: false
width: 200
height: 200
model: 20
delegate: Text {
text: qsTr(props.titleText).arg(index)
color: props.titleColor
font.pointSize: props.titlePointSize
}
property QtObject props: QtObject {
property string titleText: "List Item %1 Title"
property color titleColor: Qt.rgba(1, 0, 0, 0)
property int titlePointSize: 18
}
Component.onCompleted: {
test = (props.titleText == "List Item %1 Title") &&
(props.titleColor == Qt.rgba(1, 0, 0, 0)) &&
(props.titlePointSize == 18)
}
}
|