ClangFormat: Fix build with Qt5

Amends 4022ed547d.

Change-Id: I66fc822443c8353209446cf7973a3db9dc52debe
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2022-03-28 06:59:43 +02:00
parent b7153131ff
commit de88d00ca4

View File

@@ -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();
}); });