forked from qt-creator/qt-creator
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:
committed by
Christian Stenger
parent
e583422cbf
commit
354b51fda0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user