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>
This commit is contained in:
David Schulz
2023-08-29 14:10:21 +02:00
parent 79bf9acd1b
commit e788deb1fc
2 changed files with 7 additions and 0 deletions

View File

@@ -565,4 +565,9 @@ TextEditorActionHandler::~TextEditorActionHandler()
delete d; delete d;
} }
void TextEditorActionHandler::updateCurrentEditor()
{
d->updateCurrentEditor(Core::EditorManager::currentEditor());
}
} // namespace TextEditor } // namespace TextEditor

View File

@@ -49,6 +49,8 @@ public:
uint optionalActions() const; uint optionalActions() const;
~TextEditorActionHandler(); ~TextEditorActionHandler();
void updateCurrentEditor();
private: private:
Internal::TextEditorActionHandlerPrivate *d; Internal::TextEditorActionHandlerPrivate *d;
}; };