summaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlstatemachinemetatype/data/unregisterAttachedProperties.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlstatemachinemetatype/data/unregisterAttachedProperties.qml')
-rw-r--r--tests/auto/qml/qqmlstatemachinemetatype/data/unregisterAttachedProperties.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlstatemachinemetatype/data/unregisterAttachedProperties.qml b/tests/auto/qml/qqmlstatemachinemetatype/data/unregisterAttachedProperties.qml
new file mode 100644
index 0000000..ee26be6
--- /dev/null
+++ b/tests/auto/qml/qqmlstatemachinemetatype/data/unregisterAttachedProperties.qml
@@ -0,0 +1,7 @@
+// The extra import shuffles the type IDs around, so that we
+// get a different ID for the attached properties. If the attached
+// properties aren't properly cleared, this will crash.
+
+import QtQml.StateMachine 1.0
+import QtQuick 2.2
+Item { KeyNavigation.up: null }