summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlpropertychanges.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-11-05 03:56:56 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-11-05 04:48:03 (GMT)
commit656870157932a0b44de69927faa003c71eeb2a47 (patch)
tree569c205b62aca853b5f24118f1384a748b7efc84 /src/declarative/util/qmlpropertychanges.cpp
parentd39ec85b7e5d8702c2888cdad4ccdae72531c199 (diff)
downloadQt-656870157932a0b44de69927faa003c71eeb2a47.zip
Qt-656870157932a0b44de69927faa003c71eeb2a47.tar.gz
Qt-656870157932a0b44de69927faa003c71eeb2a47.tar.bz2
Fix signal overriding.
Diffstat (limited to 'src/declarative/util/qmlpropertychanges.cpp')
-rw-r--r--src/declarative/util/qmlpropertychanges.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmlpropertychanges.cpp b/src/declarative/util/qmlpropertychanges.cpp
index dbf2bc4..3cc6ca9 100644
--- a/src/declarative/util/qmlpropertychanges.cpp
+++ b/src/declarative/util/qmlpropertychanges.cpp
@@ -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.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();
}