aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppparsecontext.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-07-19 23:36:11 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-07-26 16:58:45 +0000
commit44f1fd64986ec542e468b18c3ea97cf363e975aa (patch)
treecd57d39c0fb6b2bc79f78b25624ee9c51ded8b9c /src/plugins/cppeditor/cppparsecontext.cpp
parentebd0dd6ebc916b978a5a2cf0139f40ae0b48a96f (diff)
Drop Qt5: Cpp/TextEditor: Get rid of QOverload
Change-Id: I010f211b40f876c0f033fd717aaa094f775ea214 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/cppeditor/cppparsecontext.cpp')
-rw-r--r--src/plugins/cppeditor/cppparsecontext.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/cppeditor/cppparsecontext.cpp b/src/plugins/cppeditor/cppparsecontext.cpp
index 08b5362a0a..947ae4f8b2 100644
--- a/src/plugins/cppeditor/cppparsecontext.cpp
+++ b/src/plugins/cppeditor/cppparsecontext.cpp
@@ -144,16 +144,13 @@ ParseContextWidget::ParseContextWidget(ParseContextModel &parseContextModel, QWi
// Set up context menu with a clear action
setContextMenuPolicy(Qt::ActionsContextMenu);
m_clearPreferredAction = new QAction(tr("Clear Preferred Parse Context"), this);
- connect(m_clearPreferredAction, &QAction::triggered, this, [this]() {
+ connect(m_clearPreferredAction, &QAction::triggered, this, [this] {
m_parseContextModel.clearPreferred();
});
addAction(m_clearPreferredAction);
// Set up sync of this widget and model in both directions
- connect(this,
- QOverload<int>::of(&QComboBox::activated),
- &m_parseContextModel,
- &ParseContextModel::setPreferred);
+ connect(this, &QComboBox::activated, &m_parseContextModel, &ParseContextModel::setPreferred);
connect(&m_parseContextModel, &ParseContextModel::updated,
this, &ParseContextWidget::syncToModel);