summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/icodestylepreferencesfactory.h
diff options
context:
space:
mode:
authorArtem Sokolovskii <artem.sokolovskii@qt.io>2023-04-04 14:28:27 +0200
committerArtem Sokolovskii <artem.sokolovskii@qt.io>2023-04-06 11:20:29 +0000
commit028686b4196d9c1a71d292e2a64a55e514ec7f5c (patch)
tree17f1f9bfebeedb391627b52d336f4088e5e7fac7 /src/plugins/texteditor/icodestylepreferencesfactory.h
parent42c653b53c9e6acfd336c133a14a81290784a673 (diff)
downloadqt-creator-028686b4196d9c1a71d292e2a64a55e514ec7f5c.tar.gz
ClangFormat: Grey out Clang-Format Style config when not overridden
Add feature to grey out the Clang-Format Style configuration widget after unchecking the 'Override' checkbox. Change-Id: I94bbb1f4436f3caeaed55d49582211257e480d0d 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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/texteditor/icodestylepreferencesfactory.h b/src/plugins/texteditor/icodestylepreferencesfactory.h
index ead4298503..6a4c7f2f54 100644
--- a/src/plugins/texteditor/icodestylepreferencesfactory.h
+++ b/src/plugins/texteditor/icodestylepreferencesfactory.h
@@ -40,8 +40,10 @@ public:
virtual CodeStyleEditorWidget *createCodeStyleEditor(ICodeStylePreferences *codeStyle,
ProjectExplorer::Project *project = nullptr,
QWidget *parent = nullptr);
- virtual CodeStyleEditorWidget *createAdditionalGlobalSettings(
- ProjectExplorer::Project *project = nullptr, QWidget *parent = nullptr);
+ virtual CodeStyleEditorWidget *createAdditionalGlobalSettings(ICodeStylePreferences *codeStyle,
+ ProjectExplorer::Project *project
+ = nullptr,
+ QWidget *parent = nullptr);
virtual Utils::Id languageId() = 0;
virtual QString displayName() = 0;
virtual ICodeStylePreferences *createCodeStyle() const = 0;