Commit 861981a3 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.statesView: not changing to base state anymore

Before recent refactoring (done by Marco) the node instances were not
able to handle outside the current state. So we had to change back to
the base state for all base state changes from the rewriter.

This is not necessary, anymore.

Reviewed-by: Marco Bubke
parent d82cabcf
......@@ -396,14 +396,6 @@ void StatesEditorView::customNotification(const AbstractView *view, const QStrin
if (debug)
qDebug() << __FUNCTION__;
QmlModelView::customNotification(view, identifier, nodeList, data);
if (identifier == StartRewriterAmend) {
m_oldRewriterAmendState = currentState();
QmlModelView::setCurrentState(baseState());
} else if (identifier == EndRewriterAmend) {
if (m_oldRewriterAmendState.isValid())
QmlModelView::setCurrentState(m_oldRewriterAmendState);
}
}
QPixmap StatesEditorView::renderState(int i)
......
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