ClangFormat: Fix code style preferences are grayed out

Code style preferences are grayed out even when formatting mode
is set to disable.

Fixes: QTCREATORBUG-29129
Change-Id: Icf82fa0751f9291122c2af55111b6bd5fac85c7b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Artem Sokolovskii
2023-05-08 11:00:04 +02:00
parent 2455ff28cd
commit 7960c1f3f6
7 changed files with 51 additions and 19 deletions

View File

@@ -5,6 +5,8 @@
#include <cppeditor/cppcodestylesettingspage.h>
#include <utils/guard.h>
#include <memory>
QT_BEGIN_NAMESPACE
@@ -40,6 +42,7 @@ private:
ProjectExplorer::Project *m_project;
TextEditor::ICodeStylePreferences *m_codeStyle;
Utils::Guard m_ignoreChanges;
QLabel *m_projectHasClangFormat;
QLabel *m_formattingModeLabel;