ClangFormat: Do not show floating widget

The widget is visible by default and will be shown when it
gets added to its parent widget.
This patch avoids a short popup of the widget which is not
added to its parent when opening the C++ settings.
Amends e1f7469afb.

Change-Id: I7fd40e1fff4872c725ec84b5d1c1e60d6b2b22ce
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This commit is contained in:
Christian Stenger
2024-02-29 12:51:14 +01:00
parent a8b689ae9b
commit 63a8856251

View File

@@ -227,8 +227,6 @@ void ClangFormatConfigWidget::initEditor(TextEditor::ICodeStylePreferences *code
QShortcut *saveSC = new QShortcut(QKeySequence("Ctrl+S"), this); QShortcut *saveSC = new QShortcut(QKeySequence("Ctrl+S"), this);
connect(saveSC, &QShortcut::activated, this, [this] { apply(); }); connect(saveSC, &QShortcut::activated, this, [this] { apply(); });
m_editorScrollArea->show();
} }
void ClangFormatConfigWidget::initPreview(TextEditor::ICodeStylePreferences *codeStyle) void ClangFormatConfigWidget::initPreview(TextEditor::ICodeStylePreferences *codeStyle)