aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/codestyleeditor.h
diff options
context:
space:
mode:
authorArtem Sokolovskii <artem.sokolovskii@qt.io>2022-03-17 12:01:17 +0100
committerArtem Sokolovskii <artem.sokolovskii@qt.io>2022-05-10 09:40:53 +0000
commitbbc44cfb90ca0f43de3774021c28ad4e7163e12b (patch)
tree949252162bf03c8eeb68d4cd90e004c15029804e /src/plugins/texteditor/codestyleeditor.h
parent81f33072b90ba2ff860654ad59eba7d651c5bfb7 (diff)
ClangFormat: Fix settings checkboxes disappearance
- Fixed settings checkboxes disappearance after open a project - Fixed impossibility to save settings Task-number: QTCREATORBUG-26948 Change-Id: Ia73a61bf56b99adea9ed45c9d656860b185a3d7e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/texteditor/codestyleeditor.h')
-rw-r--r--src/plugins/texteditor/codestyleeditor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/texteditor/codestyleeditor.h b/src/plugins/texteditor/codestyleeditor.h
index 613463c75b..688672b489 100644
--- a/src/plugins/texteditor/codestyleeditor.h
+++ b/src/plugins/texteditor/codestyleeditor.h
@@ -33,6 +33,7 @@ QT_BEGIN_NAMESPACE
class QVBoxLayout;
QT_END_NAMESPACE
+namespace ProjectExplorer { class Project; }
namespace TextEditor {
class ICodeStylePreferencesFactory;
@@ -44,7 +45,9 @@ class TEXTEDITOR_EXPORT CodeStyleEditor : public CodeStyleEditorWidget
Q_OBJECT
public:
CodeStyleEditor(ICodeStylePreferencesFactory *factory,
- ICodeStylePreferences *codeStyle, QWidget *parent = nullptr);
+ ICodeStylePreferences *codeStyle,
+ ProjectExplorer::Project *project = nullptr,
+ QWidget *parent = nullptr);
private:
void updatePreview();