forked from qt-creator/qt-creator
ClangFormat: Fix build with Qt5
Amends 4022ed547d
.
Change-Id: I66fc822443c8353209446cf7973a3db9dc52debe
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -201,7 +201,7 @@ void ClangFormatConfigWidget::showCombobox()
|
|||||||
m_ui->indentingOrFormatting->insertItem(indentIndex(), tr("Indenting only"));
|
m_ui->indentingOrFormatting->insertItem(indentIndex(), tr("Indenting only"));
|
||||||
m_ui->indentingOrFormatting->insertItem(formatIndex(), tr("Full formatting"));
|
m_ui->indentingOrFormatting->insertItem(formatIndex(), tr("Full formatting"));
|
||||||
|
|
||||||
connect(m_ui->indentingOrFormatting, &QComboBox::currentIndexChanged, this, [this](int) {
|
connect(m_ui->indentingOrFormatting, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this](int) {
|
||||||
if (m_project)
|
if (m_project)
|
||||||
apply();
|
apply();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user