summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-11-06 03:14:57 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-11-06 03:14:57 (GMT)
commit09da662ff8486a5d0e990e26e8a4e499dcf6d404 (patch)
treea54775f8b549dabeb205f7c19aea8377827fd8dd /src/declarative/util
parent9cd41cbd61afd2459c0c3f053aa45a02954ef77c (diff)
parent2787177ff160e79b2274b07f688ca96b0acb4ee1 (diff)
downloadQt-09da662ff8486a5d0e990e26e8a4e499dcf6d404.zip
Qt-09da662ff8486a5d0e990e26e8a4e499dcf6d404.tar.gz
Qt-09da662ff8486a5d0e990e26e8a4e499dcf6d404.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qmlpropertychanges.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qmlpropertychanges.cpp b/src/declarative/util/qmlpropertychanges.cpp
index 3cc6ca9..3aa3678 100644
--- a/src/declarative/util/qmlpropertychanges.cpp
+++ b/src/declarative/util/qmlpropertychanges.cpp
@@ -232,7 +232,7 @@ void QmlPropertyChangesPrivate::decode()
ds >> data;
QmlMetaProperty prop = property(name); //### better way to check for signal property?
- if (prop.type() == QmlMetaProperty::SignalProperty) {
+ if (prop.type() & QmlMetaProperty::SignalProperty) {
QmlExpression *expression = new QmlExpression(qmlContext(q), data.toString(), object);
expression->setTrackChange(false);
QmlReplaceSignalHandler *handler = new QmlReplaceSignalHandler;
@@ -307,7 +307,7 @@ QmlPropertyChangesPrivate::property(const QByteArray &property)
if (!prop.isValid()) {
qmlInfo(QmlPropertyChanges::tr("Cannot assign to non-existant property \"%1\"").arg(QString::fromUtf8(property)), q);
return QmlMetaProperty();
- } else if (prop.type() != QmlMetaProperty::SignalProperty && !prop.isWritable()) {
+ } else if (!(prop.type() & QmlMetaProperty::SignalProperty) && !prop.isWritable()) {
qmlInfo(QmlPropertyChanges::tr("Cannot assign to read-only property \"%1\"").arg(QString::fromUtf8(property)), q);
return QmlMetaProperty();
}