QmlDesigner: Fix update issue

The cache has to be cleared fist

Change-Id: Iba2a6035becf0dc60f2bc95b94dd1b6ef59ad4d3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2023-09-12 20:11:47 +02:00
parent 781e9dd5e3
commit 034f107851

View File

@@ -91,10 +91,11 @@ const std::vector<PropertyName> priorityListSignals = {"clicked",
"exited",
"canceled",
"triggered",
"stateChanged",
"pressAndHold",
"started",
"stopped",
"finished"
"stateChanged",
"enabledChanged",
"visibleChanged",
"opacityChanged",
@@ -136,6 +137,8 @@ void PropertyTreeModel::resetModel()
{
beginResetModel();
m_sortedAndFilteredPropertyNamesSignalsSlots.clear();
m_indexCache.clear();
m_indexHash.clear();
m_indexCount = 0;
@@ -148,8 +151,6 @@ void PropertyTreeModel::resetModel()
});
}
m_sortedAndFilteredPropertyNamesSignalsSlots.clear();
endResetModel();
testModel();
}