diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-02-09 13:37:05 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-02-09 17:49:59 +0000 |
commit | cea31a2c4f16a8cdba279b2834cc3f795b22cf13 (patch) | |
tree | 694e914bb9cabfc48f3ffb918efe70773e781253 /tests | |
parent | 3bd96e7e739a3a8decc2f0b1fc9832b7acf5d64d (diff) | |
download | qt-creator-cea31a2c4f16a8cdba279b2834cc3f795b22cf13.tar.gz |
QmlDesigner: Add cache for instances
When detaching the NodeInstanceView from a model
we insert all instances for this model into a cache.
The cache currently takes a maximum of 20 models.
If the model is reattached we use the existing instances, instead
of creating new ones.
We also recycle the state previews. Outdated data will be overridden by
new data once the puppet is sending the respective commands.
Task-number: QDS-6121
Change-Id: I15b5628afc5579ba8a03dca23ba5809e55022f3d
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions