diff options
author | David Schulz <david.schulz@nokia.com> | 2012-01-18 11:54:12 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@nokia.com> | 2012-01-18 14:30:42 +0100 |
commit | 354b51fda0037b611f4c0b5d8c00f1c3fa571b9a (patch) | |
tree | 107c1b63f4bc314a33ed33c35a13a8f86121dc92 /src/plugins/qmljseditor | |
parent | e583422cbf2d3873f65bffc42b6c298c9f227753 (diff) | |
download | qt-creator-354b51fda0037b611f4c0b5d8c00f1c3fa571b9a.tar.gz |
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>
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmljsoutline.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmljseditor/qmljsoutline.cpp b/src/plugins/qmljseditor/qmljsoutline.cpp index ea197174eb..2a6e3be789 100644 --- a/src/plugins/qmljseditor/qmljsoutline.cpp +++ b/src/plugins/qmljseditor/qmljsoutline.cpp @@ -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; } |