QmlOutline: Don't scroll to (horizontal) center when auto-selecting

This commit is contained in:
Kai Koehne
2010-08-25 15:31:25 +02:00
parent 58892081de
commit 3a87261193

View File

@@ -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;
}