Utils: Pass context object to lambda connections

Remove some unneeded lambda () brackets.

Change-Id: I6b7e07cad8a240a7021c6ddacc84a971809ee717
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2022-12-07 14:34:32 +01:00
parent 166f710e62
commit 9afcf870a1
14 changed files with 18 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ void MinimizableInfoBars::createActions()
auto action = new QAction(this);
action->setToolTip(entry.text());
action->setIcon(Icons::WARNING_TOOLBAR.pixmap());
connect(action, &QAction::triggered, this, [this, id]() {
connect(action, &QAction::triggered, this, [this, id] {
setShowInInfoBar(id, true);
updateInfo(id);
});