diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2023-12-21 15:25:50 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-01-31 16:16:25 +0000 |
commit | 558b7fbc714f3d12fa1f9678b18c50880d5ad3ae (patch) | |
tree | e705ed0bcfbb9697673815074e4cfbc637e9ba28 | |
parent | ff3f8a5bc7438bd59a52009f72c330c09bacdb94 (diff) |
QmlDesigner: Clear text highlight when jumping to code
Change-Id: Ie382c2d9a45bdb57676a4c047bf750b0b7849191
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/texteditor/texteditorview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/texteditor/texteditorview.cpp b/src/plugins/qmldesigner/components/texteditor/texteditorview.cpp index cdf09c1493..d400251648 100644 --- a/src/plugins/qmldesigner/components/texteditor/texteditorview.cpp +++ b/src/plugins/qmldesigner/components/texteditor/texteditorview.cpp @@ -299,6 +299,7 @@ void TextEditorView::jumpToModelNode(const ModelNode &modelNode) m_widget->window()->windowHandle()->requestActivate(); m_widget->textEditor()->widget()->setFocus(); + m_widget->textEditor()->editorWidget()->updateFoldingHighlight(QTextCursor()); } void TextEditorView::instancePropertyChanged(const QList<QPair<ModelNode, PropertyName> > &/*propertyList*/) |