aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmldom/domdata/reformatter/file1Unindented.qml
blob: 4085b91e6e92eea6ee9f98dd65933c789ed0a319 (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
pragma pippo
import QtQuick 2.15
import QtQuick.Window 2.15

Window {
visible: true
width: 640
height: 480
title: qsTr("Scroll")

property var arr: [1,2,3]
property var arrTrailingComma: [1,2,3,]

Rectangle {
anchors.fill: parent

Behavior on opacity {}

ListView {
width: parent.width
model: {
MySingleton.mySignal()
20
}
delegate: ItemDelegate {
id: root
text: "Item " + (index + 1)
width: parent.width
Rectangle {
text: "bla"
}
MyComponent {
text: root.text
function f(v = 4){
let c = 0
return {
a: function(){ if (b == 0) c += 78*5*v; }()
}
}
property int a: {
return 45
}
}
}
}
}
}