diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-03-28 06:59:43 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-03-28 09:00:23 +0000 |
commit | de88d00ca4c4440f74a2d3fa115d12ba1a00700c (patch) | |
tree | 6c718222991c25e64399ae954c4b768eef6f9988 /src/plugins/clangformat | |
parent | b7153131ff2d447751beb32f0cd93487c9471efa (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.cpp | 2 |
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(); }); |