forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -42,13 +42,15 @@
|
||||
using namespace TextEditor;
|
||||
|
||||
CodeStyleEditor::CodeStyleEditor(ICodeStylePreferencesFactory *factory,
|
||||
ICodeStylePreferences *codeStyle, QWidget *parent)
|
||||
: CodeStyleEditorWidget(parent),
|
||||
m_factory(factory),
|
||||
m_codeStyle(codeStyle)
|
||||
ICodeStylePreferences *codeStyle,
|
||||
ProjectExplorer::Project *project,
|
||||
QWidget *parent)
|
||||
: CodeStyleEditorWidget(parent)
|
||||
, m_factory(factory)
|
||||
, m_codeStyle(codeStyle)
|
||||
{
|
||||
m_layout = new QVBoxLayout(this);
|
||||
auto selector = new CodeStyleSelectorWidget(factory, this);
|
||||
auto selector = new CodeStyleSelectorWidget(factory, project, this);
|
||||
selector->setCodeStyle(codeStyle);
|
||||
m_preview = new SnippetEditorWidget(this);
|
||||
DisplaySettings displaySettings = m_preview->displaySettings();
|
||||
|
||||
Reference in New Issue
Block a user