aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/requiredProperty.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/requiredProperty.qml')
-rw-r--r--tests/auto/qml/qmllint/data/requiredProperty.qml11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/auto/qml/qmllint/data/requiredProperty.qml b/tests/auto/qml/qmllint/data/requiredProperty.qml
index b10f0f67cd..f1e82bb402 100644
--- a/tests/auto/qml/qmllint/data/requiredProperty.qml
+++ b/tests/auto/qml/qmllint/data/requiredProperty.qml
@@ -1,6 +1,9 @@
-import QtQml 2.15
+import QtQuick 2.15
-QtObject {
- property int x
- required x
+Item {
+ component Required : QtObject {
+ property int x
+ required x
+ }
+ Required { x: 5 }
}