Commit c8d38766 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.navigator: scroll to selected item

Reviewed-by: Marco Bubke
parent 7a1e19d8
......@@ -294,6 +294,9 @@ void NavigatorView::updateItemSelection()
treeWidget()->selectionModel()->select(itemSelection, QItemSelectionModel::ClearAndSelect);
blockSelectionChangedSignal(blocked);
if (!selectedModelNodes().isEmpty())
treeWidget()->scrollTo(m_treeModel->indexForNode(selectedModelNodes().first()));
// make sure selected nodes a visible
foreach(const QModelIndex &selectedIndex, itemSelection.indexes()) {
if (selectedIndex.column() == 0)
......
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