summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativewatcher.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-10-07 07:42:08 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-10-07 07:43:22 (GMT)
commit803bdd187ec1673541b7ef8dc69652c10d0e6f88 (patch)
tree9fd62d77b792ebb6b63229a6bde562534d1bcf0f /src/declarative/qml/qdeclarativewatcher.cpp
parentdaade9bb4f1362ec0ced42e8ce2c0d7f42be88c9 (diff)
downloadQt-803bdd187ec1673541b7ef8dc69652c10d0e6f88.zip
Qt-803bdd187ec1673541b7ef8dc69652c10d0e6f88.tar.gz
Qt-803bdd187ec1673541b7ef8dc69652c10d0e6f88.tar.bz2
Connect property alias change signals on use
Task-number: QTBUG-14089
Diffstat (limited to 'src/declarative/qml/qdeclarativewatcher.cpp')
-rw-r--r--src/declarative/qml/qdeclarativewatcher.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativewatcher.cpp b/src/declarative/qml/qdeclarativewatcher.cpp
index da1419f..b9d5ec8 100644
--- a/src/declarative/qml/qdeclarativewatcher.cpp
+++ b/src/declarative/qml/qdeclarativewatcher.cpp
@@ -46,6 +46,7 @@
#include "qdeclarative.h"
#include <qdeclarativedebugservice_p.h>
+#include "private/qdeclarativeproperty_p.h"
#include <QtCore/qmetaobject.h>
#include <QtCore/qdebug.h>
@@ -103,7 +104,7 @@ QDeclarativeWatchProxy::QDeclarativeWatchProxy(int id,
refreshIdx = QDeclarativeWatchProxy::staticMetaObject.indexOfMethod("notifyValueChanged()");
if (prop.hasNotifySignal())
- QMetaObject::connect(m_object, prop.notifySignalIndex(), this, refreshIdx);
+ QDeclarativePropertyPrivate::connect(m_object, prop.notifySignalIndex(), this, refreshIdx);
}
void QDeclarativeWatchProxy::notifyValueChanged()