diff options
Diffstat (limited to 'src/qml/qml/qqmlcompiler_p.h')
-rw-r--r-- | src/qml/qml/qqmlcompiler_p.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlcompiler_p.h b/src/qml/qml/qqmlcompiler_p.h index 52d6fe210c..9e63ecb22c 100644 --- a/src/qml/qml/qqmlcompiler_p.h +++ b/src/qml/qml/qqmlcompiler_p.h @@ -140,8 +140,11 @@ public: // --- new compiler QV4::CompiledData::CompilationUnit *compilationUnit; QV4::CompiledData::QmlUnit *qmlUnit; - // ### sub-context support - QHash<int, int> objectIndexToId; + // index in first hash is component index, hash inside maps from object index in that scope to integer id + QHash<int, QHash<int, int> > objectIndexToIdPerComponent; + QHash<int, int> objectIndexToIdForRoot; + + bool isComponent(int objectIndex) const { return objectIndexToIdPerComponent.contains(objectIndex); } // --- struct Instruction { |