Set focus to the editor after selection change in outline

now also if the selection is changed in qmljsoutline

Task-number: QTCREATORBUG-6306
Change-Id: I07365de90cc932bcc5d0ccf021b3dd7daf3bc17a
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
David Schulz
2012-01-18 11:54:12 +01:00
committed by Christian Stenger
parent e583422cbf
commit 354b51fda0

View File

@@ -229,6 +229,7 @@ void QmlJSOutlineWidget::updateTextCursor(const QModelIndex &index)
textCursor.setPosition(location.offset);
m_editor->setTextCursor(textCursor);
m_editor->centerCursor();
m_editor->setFocus();
m_blockCursorSync = false;
}