forked from qt-creator/qt-creator
QmlDesigner: Fix wrong state group shown
Fix an issue were the wrong state group is shown when switching modes e.g. Design > Edit > Design. It is caused by the model being attached and the indices not forwarded to QML. Task-number: QDS-8418 Change-Id: Ie9a99182b0230757a043397d9b906ba1bb15bed9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
02c65495d1
commit
2388caa544
@@ -714,6 +714,9 @@ void StatesEditorView::modelAttached(Model *model)
|
||||
|
||||
resetModel();
|
||||
resetStateGroups();
|
||||
|
||||
emit m_statesEditorModel->activeStateGroupChanged();
|
||||
emit m_statesEditorModel->activeStateGroupIndexChanged();
|
||||
}
|
||||
|
||||
void StatesEditorView::modelAboutToBeDetached(Model *model)
|
||||
|
||||
Reference in New Issue
Block a user