forked from qt-creator/qt-creator
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:
@@ -565,4 +565,9 @@ TextEditorActionHandler::~TextEditorActionHandler()
|
|||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TextEditorActionHandler::updateCurrentEditor()
|
||||||
|
{
|
||||||
|
d->updateCurrentEditor(Core::EditorManager::currentEditor());
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace TextEditor
|
} // namespace TextEditor
|
||||||
|
@@ -49,6 +49,8 @@ public:
|
|||||||
uint optionalActions() const;
|
uint optionalActions() const;
|
||||||
~TextEditorActionHandler();
|
~TextEditorActionHandler();
|
||||||
|
|
||||||
|
void updateCurrentEditor();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Internal::TextEditorActionHandlerPrivate *d;
|
Internal::TextEditorActionHandlerPrivate *d;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user