Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -396,14 +396,6 @@ void StatesEditorView::customNotification(const AbstractView *view, const QStrin ...@@ -396,14 +396,6 @@ void StatesEditorView::customNotification(const AbstractView *view, const QStrin
if (debug) if (debug)
qDebug() << __FUNCTION__; 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) QPixmap StatesEditorView::renderState(int i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment