aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mesonprojectmanager
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-08-01 19:59:54 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2023-08-02 08:55:37 +0000
commitaa016cc5a784098947636b05106ab57ae6e70d38 (patch)
tree4b0a307d47c94375d20e954b9fcdedc21f1c15b2 /src/plugins/mesonprojectmanager
parent47fce17aa37f6e0ca003ad07917afbd047179f50 (diff)
Various Plugins: Add context object into connections
Change-Id: I360677bebfef16a3233b3b8177cff6da57ec7c31 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/mesonprojectmanager')
-rw-r--r--src/plugins/mesonprojectmanager/mesonbuildconfiguration.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/mesonprojectmanager/mesonbuildconfiguration.cpp b/src/plugins/mesonprojectmanager/mesonbuildconfiguration.cpp
index a8722fc24fc..579efa7035f 100644
--- a/src/plugins/mesonprojectmanager/mesonbuildconfiguration.cpp
+++ b/src/plugins/mesonprojectmanager/mesonbuildconfiguration.cpp
@@ -221,7 +221,8 @@ public:
m_showProgressTimer.setSingleShot(true);
m_showProgressTimer.setInterval(50); // don't show progress for < 50ms tasks
- connect(&m_showProgressTimer, &QTimer::timeout, [this]() { m_progressIndicator.show(); });
+ connect(&m_showProgressTimer, &QTimer::timeout,
+ this, [this] { m_progressIndicator.show(); });
connect(&m_optionsModel, &BuidOptionsModel::configurationChanged, this, [configureButton] {
configureButton->setEnabled(true);
});
@@ -274,13 +275,15 @@ public:
optionsTreeView,
[tree = optionsTreeView](const QModelIndex &idx) { tree->edit(idx); });
- connect(configureButton, &QPushButton::clicked, [this, bs, configureButton, optionsTreeView] {
+ connect(configureButton, &QPushButton::clicked,
+ this, [this, bs, configureButton, optionsTreeView] {
optionsTreeView->setEnabled(false);
configureButton->setEnabled(false);
m_showProgressTimer.start();
bs->configure();
});
- connect(wipeButton, &QPushButton::clicked, [this, bs, configureButton, optionsTreeView] {
+ connect(wipeButton, &QPushButton::clicked,
+ this, [this, bs, configureButton, optionsTreeView] {
optionsTreeView->setEnabled(false);
configureButton->setEnabled(false);
m_showProgressTimer.start();