aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppoutline.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@nokia.com>2012-01-11 15:21:41 +0100
committerLeandro Melo <leandro.melo@nokia.com>2012-01-11 18:28:47 +0100
commit7abc4c18dcc61b1306db4c2e8037fdedfa71f5b4 (patch)
tree290ad192269bfc236e96e782bffd6f3f0d75a90b /src/plugins/cppeditor/cppoutline.cpp
parentaf290c14e80d4b4a6dd65d2bf830609f219cc7f1 (diff)
Set focus to the editor after selection change in outline
Task-number: QTCREATORBUG-6306 Change-Id: Ia60193ba2c4204532798fb4f7eade434d7510ff5 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppoutline.cpp')
-rw-r--r--src/plugins/cppeditor/cppoutline.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppoutline.cpp b/src/plugins/cppeditor/cppoutline.cpp
index 8caa2b6091..0c2a592ab3 100644
--- a/src/plugins/cppeditor/cppoutline.cpp
+++ b/src/plugins/cppeditor/cppoutline.cpp
@@ -185,6 +185,7 @@ void CppOutlineWidget::updateTextCursor(const QModelIndex &proxyIndex)
// line has to be 1 based, column 0 based!
m_editor->gotoLine(symbol->line(), symbol->column() - 1);
+ m_editor->setFocus();
m_blockCursorSync = false;
}
}