aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/icodestylepreferencesfactory.h
diff options
context:
space:
mode:
authorArtem Sokolovskii <artem.sokolovskii@qt.io>2022-03-29 15:48:15 +0200
committerArtem Sokolovskii <artem.sokolovskii@qt.io>2022-03-30 16:32:08 +0000
commit059d20ed222b4c1b387268edd85fbe6713d9855c (patch)
tree915f31775fd7707795d56c840245eadca419917f /src/plugins/texteditor/icodestylepreferencesfactory.h
parent974d37d58a0695952477d606fd63b6d06e2335ea (diff)
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: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/texteditor/icodestylepreferencesfactory.h')
-rw-r--r--src/plugins/texteditor/icodestylepreferencesfactory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/icodestylepreferencesfactory.h b/src/plugins/texteditor/icodestylepreferencesfactory.h
index ab95039da3..7230772670 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;