aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangformat
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2022-03-28 06:59:43 +0200
committerChristian Stenger <christian.stenger@qt.io>2022-03-28 09:00:23 +0000
commitde88d00ca4c4440f74a2d3fa115d12ba1a00700c (patch)
tree6c718222991c25e64399ae954c4b768eef6f9988 /src/plugins/clangformat
parentb7153131ff2d447751beb32f0cd93487c9471efa (diff)
ClangFormat: Fix build with Qt5
Amends 4022ed547defe2e. Change-Id: I66fc822443c8353209446cf7973a3db9dc52debe Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/clangformat')
-rw-r--r--src/plugins/clangformat/clangformatconfigwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clangformat/clangformatconfigwidget.cpp b/src/plugins/clangformat/clangformatconfigwidget.cpp
index 4a81d3bd69..617030cb0d 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<int>::of(&QComboBox::currentIndexChanged), this, [this](int) {
if (m_project)
apply();
});