From de88d00ca4c4440f74a2d3fa115d12ba1a00700c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 28 Mar 2022 06:59:43 +0200 Subject: [PATCH] ClangFormat: Fix build with Qt5 Amends 4022ed547defe2e. Change-Id: I66fc822443c8353209446cf7973a3db9dc52debe Reviewed-by: Christian Kandeler --- src/plugins/clangformat/clangformatconfigwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/clangformat/clangformatconfigwidget.cpp b/src/plugins/clangformat/clangformatconfigwidget.cpp index 4a81d3bd694..617030cb0d9 100644 --- a/src/plugins/clangformat/clangformatconfigwidget.cpp +++ b/src/plugins/clangformat/clangformatconfigwidget.cpp @@ -201,7 +201,7 @@ void ClangFormatConfigWidget::showCombobox() m_ui->indentingOrFormatting->insertItem(indentIndex(), tr("Indenting only")); m_ui->indentingOrFormatting->insertItem(formatIndex(), tr("Full formatting")); - connect(m_ui->indentingOrFormatting, &QComboBox::currentIndexChanged, this, [this](int) { + connect(m_ui->indentingOrFormatting, QOverload::of(&QComboBox::currentIndexChanged), this, [this](int) { if (m_project) apply(); });