aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditoractionhandler.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2023-08-29 14:10:21 +0200
committerDavid Schulz <david.schulz@qt.io>2023-08-30 04:15:58 +0000
commite788deb1fc8077b65a09cd2bb1702582050c82cb (patch)
tree30e2517a726e774f9fab5e2aa0e9d4cd140c03a0 /src/plugins/texteditor/texteditoractionhandler.cpp
parent79bf9acd1bbca7a4bd1c062a53bfbc2ff020f0e9 (diff)
TextEditor: add force update current Editor in action handler
This can be used to update the editor widget connected in the action handler if the editor widget inside one editor changes. Change-Id: Idc9ea119aa2eaab34bd249c59ab9dfb255556fa1 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/texteditor/texteditoractionhandler.cpp')
-rw-r--r--src/plugins/texteditor/texteditoractionhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp
index 4224b50443..d22f8c9657 100644
--- a/src/plugins/texteditor/texteditoractionhandler.cpp
+++ b/src/plugins/texteditor/texteditoractionhandler.cpp
@@ -565,4 +565,9 @@ TextEditorActionHandler::~TextEditorActionHandler()
delete d;
}
+void TextEditorActionHandler::updateCurrentEditor()
+{
+ d->updateCurrentEditor(Core::EditorManager::currentEditor());
+}
+
} // namespace TextEditor