Files
qt-creator/tests/auto/qml/reformatter/qmlsyntax.qml
Tim Jenssen a3fb2051ad QmlJS: Fix code re-formatter for property
Fixes: QTCREATORBUG-22515
Change-Id: Ie560f8cf9e43081a37f2210ea2f6df741f14ced6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-06-20 08:19:10 +00:00

53 lines
898 B
QML

// imports
import QtQuick 2.0
import Qt.labs.particles 1.0 as Part
import "/usr" as Foo
import "." 1.0
Text {
// properties
property int foo
property alias bar: x
property list<QtObject> pro
property Part.Particles particles
property list<Part.Particles> particlesList
default property int def
property var baz: Rectangle {
width: 20
}
// script binding
x: x + y
// object bindings
Rectangle on font.family {
x: x
}
anchors.bottom: AnchorAnimation {
running: true
}
// array binding
states: [
State {
name: x
},
State {
name: y
}
]
// nested with qualified id
Part.ParticleMotion {
id: foo
}
// functions
function foo(a, b) {}
function foo(a, b) {
x = a + 12 * b
}
value: Rectangle {}
}