summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlwatcher.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-02-23 06:18:33 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-02-23 06:19:10 (GMT)
commit287a8757e348f56e2ae918d1aa5bf329c985f620 (patch)
tree842b54d60caeaf750884e61eefc54b5cf79f7272 /src/declarative/qml/qmlwatcher.cpp
parentcd8d8d49f78c1cbb8ad3546e66a461b9e6e29ff5 (diff)
downloadQt-287a8757e348f56e2ae918d1aa5bf329c985f620.zip
Qt-287a8757e348f56e2ae918d1aa5bf329c985f620.tar.gz
Qt-287a8757e348f56e2ae918d1aa5bf329c985f620.tar.bz2
QmlExpression API review
Diffstat (limited to 'src/declarative/qml/qmlwatcher.cpp')
-rw-r--r--src/declarative/qml/qmlwatcher.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlwatcher.cpp b/src/declarative/qml/qmlwatcher.cpp
index 59503de..a8a94c5 100644
--- a/src/declarative/qml/qmlwatcher.cpp
+++ b/src/declarative/qml/qmlwatcher.cpp
@@ -154,6 +154,7 @@ bool QmlWatcher::addWatch(int id, quint32 objectId, const QString &expr)
QmlContext *context = qmlContext(object);
if (context) {
QmlExpression *exprObj = new QmlExpression(context, expr, object);
+ exprObj->setNotifyOnValueChanged(true);
QmlWatchProxy *proxy = new QmlWatchProxy(id, exprObj, objectId, this);
exprObj->setParent(proxy);
m_proxies[id].append(proxy);