aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qquickconnection/data/moduleapi-target.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qquickconnection/data/moduleapi-target.qml')
-rw-r--r--tests/auto/qml/qquickconnection/data/moduleapi-target.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/qml/qquickconnection/data/moduleapi-target.qml b/tests/auto/qml/qquickconnection/data/moduleapi-target.qml
new file mode 100644
index 0000000000..8803f24542
--- /dev/null
+++ b/tests/auto/qml/qquickconnection/data/moduleapi-target.qml
@@ -0,0 +1,22 @@
+import QtQuick 2.0
+import MyTestModuleApi 1.0 as MyTestModuleApi
+
+Item {
+ id: rootObject
+ objectName: "rootObject"
+ property int newIntPropValue: 12
+
+ property int moduleIntPropChangedCount: 0
+ property int moduleOtherSignalCount: 0
+
+ function setModuleIntProp() {
+ MyTestModuleApi.intProp = newIntPropValue;
+ newIntPropValue = newIntPropValue + 1;
+ }
+
+ Connections {
+ target: MyTestModuleApi
+ onIntPropChanged: moduleIntPropChangedCount = moduleIntPropChangedCount + 1;
+ onOtherSignal: moduleOtherSignalCount = moduleOtherSignalCount + 1;
+ }
+}