diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-12-16 02:03:30 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-12-16 02:03:30 (GMT) |
commit | bef6f93997a4ad0f0658e2c76da70a0afb414a5b (patch) | |
tree | da444579f8abb122c85c91ffc5339a7c7a47acb8 /src/declarative/qml/qmlcompiler_p.h | |
parent | 0957269eac949f20685a4437a5252d6cd3b40375 (diff) | |
download | Qt-bef6f93997a4ad0f0658e2c76da70a0afb414a5b.zip Qt-bef6f93997a4ad0f0658e2c76da70a0afb414a5b.tar.gz Qt-bef6f93997a4ad0f0658e2c76da70a0afb414a5b.tar.bz2 |
Optimize <Type>.<EnumValue> type enum assignments.
Treat it as a literal assignment rather than a binding.
Diffstat (limited to 'src/declarative/qml/qmlcompiler_p.h')
-rw-r--r-- | src/declarative/qml/qmlcompiler_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlcompiler_p.h b/src/declarative/qml/qmlcompiler_p.h index d734a12..108505f 100644 --- a/src/declarative/qml/qmlcompiler_p.h +++ b/src/declarative/qml/qmlcompiler_p.h @@ -219,6 +219,10 @@ private: bool doesPropertyExist(QmlParser::Property *prop, QmlParser::Object *obj); bool testLiteralAssignment(const QMetaProperty &prop, QmlParser::Value *value); + bool testQualifiedEnumAssignment(const QMetaProperty &prop, + QmlParser::Object *obj, + QmlParser::Value *value, + bool *isAssignment); enum DynamicMetaMode { IgnoreAliases, ResolveAliases, ForceCreation }; bool mergeDynamicMetaProperties(QmlParser::Object *obj); bool buildDynamicMeta(QmlParser::Object *obj, DynamicMetaMode mode); |