aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmlls/modules/data/completions/Yyy.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qmlls/modules/data/completions/Yyy.qml')
-rw-r--r--tests/auto/qmlls/modules/data/completions/Yyy.qml32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/auto/qmlls/modules/data/completions/Yyy.qml b/tests/auto/qmlls/modules/data/completions/Yyy.qml
new file mode 100644
index 0000000000..9ac6f9968d
--- /dev/null
+++ b/tests/auto/qmlls/modules/data/completions/Yyy.qml
@@ -0,0 +1,32 @@
+import QtQuick 2.0
+import QtQuick as QQ
+
+Zzz {
+ id: root
+ width: height
+ Rectangle {
+ color: "green"
+ anchors.fill: parent
+ width: root.height
+ height: root.foo.height
+
+ }
+
+ function lala() {}
+ property Rectangle foo: Rectangle{ height: 200 }
+ function longfunction(a, b, c = "c", d = "d"): string {
+ return "hehe: " + c + d
+ }
+
+ // documentedFunction: is documented
+ // returns 'Good'
+ function documentedFunction(arg1, arg2 = "Qt"): string {
+ return "Good"
+ }
+ QQ.Rectangle {
+ color:"red"
+ }
+
+ component IC: Zzz { property SomeBase data }
+ property SomeBase mySomeBase
+}