QmlDesigner: Bind meta info cache to model

A global variable is not helping for multithreading and the cache has
anyway a 1:1 relationshit to the model.

Change-Id: Ic05f32744b70ef63aa5ae7d475afc0b5b17f2f09
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2020-10-13 16:52:48 +02:00
committed by Tim Jenssen
parent 3e9e768b35
commit 60567d385a
7 changed files with 18 additions and 28 deletions

View File

@@ -579,7 +579,7 @@ void DesignDocument::paste()
}
view.setSelectedModelNodes({pastedNode});
});
NodeMetaInfo::clearCache();
view.model()->clearMetaInfoCache();
}
}