aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qquickloader/data/active.2.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qquickloader/data/active.2.qml')
-rw-r--r--tests/auto/declarative/qquickloader/data/active.2.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/declarative/qquickloader/data/active.2.qml b/tests/auto/declarative/qquickloader/data/active.2.qml
new file mode 100644
index 0000000000..e561744c63
--- /dev/null
+++ b/tests/auto/declarative/qquickloader/data/active.2.qml
@@ -0,0 +1,18 @@
+import QtQuick 2.0
+
+Item {
+ id: root
+
+ Loader {
+ id: loader
+ objectName: "loader"
+ source: "ActiveComponent.qml";
+
+ property int statusChangedCount: 0
+ onStatusChanged: statusChangedCount = statusChangedCount + 1
+ }
+
+ function doSetInactive() {
+ loader.active = false;
+ }
+}