Commit c8d38766 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

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);
if (!selectedModelNodes().isEmpty())
// 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