Commit 03aa3672 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann

QmlDesigner: Fix for the navigator

If we update a subtree, because a node was moved or reparented, we
have to expand this subtree.

Change-Id: I7f8f004b649a695dddddde4dbec5af19c700d109
Reviewed-by: default avatarTim Jenssen <>
parent e7b642eb
......@@ -160,7 +160,7 @@ void NavigatorView::nodeAboutToBeRemoved(const ModelNode &removedNode)
void NavigatorView::nodeReparented(const ModelNode &node, const NodeAbstractProperty & /*newPropertyParent*/, const NodeAbstractProperty & /*oldPropertyParent*/, AbstractView::PropertyChangeFlags /*propertyChange*/)
void NavigatorView::nodeReparented(const ModelNode &node, const NodeAbstractProperty & newPropertyParent, const NodeAbstractProperty & /*oldPropertyParent*/, AbstractView::PropertyChangeFlags /*propertyChange*/)
bool blocked = blockSelectionChangedSignal(true);
......@@ -172,6 +172,11 @@ void NavigatorView::nodeReparented(const ModelNode &node, const NodeAbstractProp
// make sure selection is in sync again
if (newPropertyParent.parentModelNode().isValid()) {
QModelIndex index = m_treeModel->indexForNode(newPropertyParent.parentModelNode());
......@@ -223,6 +228,10 @@ void NavigatorView::nodeOrderChanged(const NodeListProperty &listProperty, const
if (node.isInHierarchy())
if (listProperty.parentModelNode().isValid()) {
QModelIndex index = m_treeModel->indexForNode(listProperty.parentModelNode());
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