Commit aeb45f5c authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Select item that is dropped to navigator

Change-Id: I2c5bf237cc29eb42f26b357eb31922323639bf71
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent b2489532
......@@ -511,6 +511,9 @@ void NavigatorTreeModel::handleItemLibraryItemDrop(const QMimeData *mimeData, in
moveNodesInteractive(targetProperty, newModelNodeList, targetRowNumber);
}
if (newQmlItemNode.isValid())
m_view->selectModelNode(newQmlItemNode.modelNode());
}
}
......@@ -533,6 +536,9 @@ void NavigatorTreeModel::handleItemLibraryImageDrop(const QMimeData *mimeData, i
moveNodesInteractive(targetProperty, newModelNodeList, targetRowNumber);
}
if (newQmlItemNode.isValid())
m_view->selectModelNode(newQmlItemNode.modelNode());
}
}
......
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