Files
qt-creator/tests/auto/qml/reformatter/qmlsyntax.qml
Christian Kamm a5b26a32b3 QmlJS: Add 'reformat' action which regenerates the whole file.
Change-Id: I0aed6c6e197e122200d720eb9291a083095a6299
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2011-11-15 11:31:40 +01:00

46 lines
729 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
default property int def
// 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
}
}