forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user