aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcompiler_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-09-30 08:37:37 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-30 18:21:45 +0200
commit385890bfdb165b397b29d3b62099f0687b358510 (patch)
tree3a1fd22eec98e521e560ae0d4cdfe16fa84ea045 /src/qml/qml/qqmlcompiler_p.h
parentd05151d735540f22ee3af75fdc7b2848dde2fe6f (diff)
Fix error messages when assigning to non-existent properties in new compiler
Introduce a simple valdator pass early on to catch those assignments. Also fix storing the correct line/col for default property object bindings and remember the minor/major version of an import in the final type reference. Change-Id: Ib2a93dfe1a30fcd9c09b5443fb8199ad11b19769 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler_p.h')
-rw-r--r--src/qml/qml/qqmlcompiler_p.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcompiler_p.h b/src/qml/qml/qqmlcompiler_p.h
index 475e43823a..b0fad4708b 100644
--- a/src/qml/qml/qqmlcompiler_p.h
+++ b/src/qml/qml/qqmlcompiler_p.h
@@ -101,12 +101,18 @@ public:
struct TypeReference
{
TypeReference()
- : type(0), typePropertyCache(0), component(0) {}
+ : type(0), typePropertyCache(0), component(0)
+ , majorVersion(0)
+ , minorVersion(0)
+ {}
QQmlType *type;
QQmlPropertyCache *typePropertyCache;
QQmlCompiledData *component;
+ int majorVersion;
+ int minorVersion;
+
QQmlPropertyCache *propertyCache() const;
QQmlPropertyCache *createPropertyCache(QQmlEngine *);
};