diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-07 04:12:37 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-07 04:12:37 (GMT) |
commit | 7032e0d9c08fcea67bb4d96be241b6b5803843ee (patch) | |
tree | 33087691681f46d731abae4bf4e4af79bd0f6096 /src/declarative/qml/qmlmetaproperty.cpp | |
parent | 8abba3d2ec7f6520d87271a5b74ae7b021629784 (diff) | |
download | Qt-7032e0d9c08fcea67bb4d96be241b6b5803843ee.zip Qt-7032e0d9c08fcea67bb4d96be241b6b5803843ee.tar.gz Qt-7032e0d9c08fcea67bb4d96be241b6b5803843ee.tar.bz2 |
Add "watchers" to debugger
Diffstat (limited to 'src/declarative/qml/qmlmetaproperty.cpp')
-rw-r--r-- | src/declarative/qml/qmlmetaproperty.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlmetaproperty.cpp b/src/declarative/qml/qmlmetaproperty.cpp index 40c9b0e..59d6b38 100644 --- a/src/declarative/qml/qmlmetaproperty.cpp +++ b/src/declarative/qml/qmlmetaproperty.cpp @@ -988,6 +988,18 @@ bool QmlMetaProperty::hasChangedNotifier() const } /*! + Returns true if the property needs a change notifier signal for bindings + to remain upto date, false otherwise. + + Some properties, such as attached properties or those whose value never + changes, do not require a change notifier. +*/ +bool QmlMetaProperty::needsChangedNotifier() const +{ + return type() & Property && !(type() & Attached); +} + +/*! Connects the property's change notifier signal to the specified \a method of the \a dest object and returns true. Returns false if this metaproperty does not |