From 059d20ed222b4c1b387268edd85fbe6713d9855c Mon Sep 17 00:00:00 2001 From: Artem Sokolovskii Date: Tue, 29 Mar 2022 15:48:15 +0200 Subject: ClangFormat: Fix unsaving properties for global settings - Fixed behavior "Formatting mode" combobox settings isn't saved after pressing "Ok" button when no one project is open. Now it works as expected, settings save after press "Ok" button. - Added additional applying interface for ICodeStylePreferenceFactory which allows pass-through apply call from dialog to the editor. Note: it doesn't work with read-only code style profiles Change-Id: If4f0c85e3105550db4ffd9860e94b678f0d9b386 Reviewed-by: Reviewed-by: Christian Kandeler --- src/plugins/texteditor/icodestylepreferencesfactory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/texteditor/icodestylepreferencesfactory.h') diff --git a/src/plugins/texteditor/icodestylepreferencesfactory.h b/src/plugins/texteditor/icodestylepreferencesfactory.h index ab95039da36..7230772670c 100644 --- a/src/plugins/texteditor/icodestylepreferencesfactory.h +++ b/src/plugins/texteditor/icodestylepreferencesfactory.h @@ -61,7 +61,7 @@ public: virtual Utils::Id languageId() = 0; virtual QString displayName() = 0; virtual ICodeStylePreferences *createCodeStyle() const = 0; - virtual QWidget *createEditor(ICodeStylePreferences *preferences, QWidget *parent) const = 0; + virtual CodeStyleEditorWidget *createEditor(ICodeStylePreferences *preferences, QWidget *parent) const = 0; virtual TextEditor::Indenter *createIndenter(QTextDocument *doc) const = 0; virtual QString snippetProviderGroupId() const = 0; virtual QString previewText() const = 0; -- cgit v1.2.3