diff options
author | Ian Walters <ian.walters@nokia.com> | 2009-05-07 05:14:04 (GMT) |
---|---|---|
committer | Ian Walters <ian.walters@nokia.com> | 2009-05-07 05:14:04 (GMT) |
commit | 45f531b9863fb64e6d4df2c77af01f14019f217e (patch) | |
tree | 8d65d6c7b64bd0aec300a3f396b175fbb70ff747 /src/declarative/qml/qmlmetaproperty.cpp | |
parent | 73667e2618ecbd00f6496006fcfc3c56ac99be6d (diff) | |
parent | e82217bf8e4ebaba20eb255bd52a9f261467b9d8 (diff) | |
download | Qt-45f531b9863fb64e6d4df2c77af01f14019f217e.zip Qt-45f531b9863fb64e6d4df2c77af01f14019f217e.tar.gz Qt-45f531b9863fb64e6d4df2c77af01f14019f217e.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
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 |