summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativepropertychanges.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-19 01:45:47 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-21 23:04:58 (GMT)
commit0c1f1b8c8f5641609e1a07622127f4e0780c2247 (patch)
treef59b4736cd7563d1df75bbbbd604218e791c89e1 /src/declarative/util/qdeclarativepropertychanges.cpp
parent44b1fc2051df2bfd784ce847ee430edad68e3dbd (diff)
downloadQt-0c1f1b8c8f5641609e1a07622127f4e0780c2247.zip
Qt-0c1f1b8c8f5641609e1a07622127f4e0780c2247.tar.gz
Qt-0c1f1b8c8f5641609e1a07622127f4e0780c2247.tar.bz2
Produce an error when trying to create objects in a PropertyChanges.
State-specific object lifecycle management will be addressed in a future release. Task-number: QTBUG-8318
Diffstat (limited to 'src/declarative/util/qdeclarativepropertychanges.cpp')
-rw-r--r--src/declarative/util/qdeclarativepropertychanges.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativepropertychanges.cpp b/src/declarative/util/qdeclarativepropertychanges.cpp
index 8865e04..6ceec5d 100644
--- a/src/declarative/util/qdeclarativepropertychanges.cpp
+++ b/src/declarative/util/qdeclarativepropertychanges.cpp
@@ -227,6 +227,8 @@ QDeclarativePropertyChangesParser::compileList(QList<QPair<QByteArray, QVariant>
const QVariant &value = values.at(ii);
if (value.userType() == qMetaTypeId<QDeclarativeCustomParserNode>()) {
+ error(qvariant_cast<QDeclarativeCustomParserNode>(value),
+ QDeclarativePropertyChanges::tr("PropertyChanges does not support creating state-specific objects."));
continue;
} else if(value.userType() == qMetaTypeId<QDeclarativeCustomParserProperty>()) {