summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativelanguage/data/autoNotifyConnection.qml
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-24 05:06:56 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-24 05:06:56 (GMT)
commita2a8cea2835ef24104fe784b6ce0f508cc5637c0 (patch)
tree80f6ad699172cb436c0d159472f8203fd5430ad4 /tests/auto/declarative/qdeclarativelanguage/data/autoNotifyConnection.qml
parent7c76abb0dc4204043bec9b6fa315f9753a7986ae (diff)
downloadQt-a2a8cea2835ef24104fe784b6ce0f508cc5637c0.zip
Qt-a2a8cea2835ef24104fe784b6ce0f508cc5637c0.tar.gz
Qt-a2a8cea2835ef24104fe784b6ce0f508cc5637c0.tar.bz2
Automatically connect to a notify signal if the requested signal is
in the "onFooChanged" form, even if the notify signal is not called "fooChanged". Task-number: QT-2783
Diffstat (limited to 'tests/auto/declarative/qdeclarativelanguage/data/autoNotifyConnection.qml')
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/autoNotifyConnection.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/autoNotifyConnection.qml b/tests/auto/declarative/qdeclarativelanguage/data/autoNotifyConnection.qml
new file mode 100644
index 0000000..640fb54
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/autoNotifyConnection.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+MyQmlObject {
+ property bool receivedNotify : false
+ onPropertyWithNotifyChanged: { receivedNotify = true; }
+}
+