Skip to content
Snippets Groups Projects
Commit 258a212d authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlOutline: Center cursor

Do the same as in CppOutline
parent 358890c2
No related branches found
No related tags found
No related merge requests found
......@@ -167,6 +167,7 @@ void QmlJSOutlineWidget::updateSelectionInText(const QItemSelection &selection)
m_blockCursorSync = true;
textCursor.setPosition(location.offset);
m_editor.data()->setTextCursor(textCursor);
m_editor.data()->centerCursor();
m_blockCursorSync = false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment