forked from qt-creator/qt-creator
QmlOutline: Don't scroll to (horizontal) center when auto-selecting
This commit is contained in:
@@ -146,7 +146,7 @@ void QmlJSOutlineWidget::updateSelectionInTree(const QModelIndex &index)
|
||||
|
||||
m_blockCursorSync = true;
|
||||
m_treeView->selectionModel()->select(m_filterModel->mapFromSource(index), QItemSelectionModel::ClearAndSelect);
|
||||
m_treeView->scrollTo(m_filterModel->mapFromSource(index), QTreeView::PositionAtCenter);
|
||||
m_treeView->scrollTo(m_filterModel->mapFromSource(index));
|
||||
m_blockCursorSync = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user