Commit 235b9e4b authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.statesEditor: thumbnail update at state removal moved to...

QmlDesigner.statesEditor: thumbnail update at state removal moved to propertiesAboutToBeRemoved method
parent b60df470
......@@ -193,6 +193,11 @@ void StatesEditorView::propertiesAboutToBeRemoved(const QList<AbstractProperty>&
if (!state.isBaseState())
removeModelState(state);
}
} else {
ModelNode node (property.parentModelNode().parentProperty().parentModelNode());
if (QmlModelState(node).isValid()) {
startUpdateTimer(modelStateIndex(node) + 1, 0);
}
}
}
}
......@@ -200,12 +205,6 @@ void StatesEditorView::propertiesAboutToBeRemoved(const QList<AbstractProperty>&
void StatesEditorView::propertiesRemoved(const QList<AbstractProperty>& propertyList)
{
QmlModelView::propertiesRemoved(propertyList);
foreach (const AbstractProperty &property, propertyList) {
ModelNode node (property.parentModelNode().parentProperty().parentModelNode());
if (QmlModelState(node).isValid()) {
startUpdateTimer(modelStateIndex(node) + 1, 0);
}
}
}
void StatesEditorView::variantPropertiesChanged(const QList<VariantProperty>& propertyList, PropertyChangeFlags propertyChange)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment