aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-07-19 22:42:48 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-07-20 13:13:11 +0000
commit5b3927869c9df7faf6aa2f22754f62952e67386f (patch)
tree01d31cf5739a371ced9904f1e0b8a589fa103b92 /src/plugins
parent19f9b6c1a0e3af10e248937eb7e30c87d17b31dc (diff)
Drop Qt5: ProjectExplorer: Get rid of QOverload
Change-Id: Id8b28efa7b31a92a5e24485803322c586a23802d Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/projectexplorer/abiwidget.cpp13
-rw-r--r--src/plugins/projectexplorer/buildsettingspropertiespage.cpp4
-rw-r--r--src/plugins/projectexplorer/customparserconfigdialog.cpp12
-rw-r--r--src/plugins/projectexplorer/customtoolchain.cpp2
-rw-r--r--src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.cpp2
-rw-r--r--src/plugins/projectexplorer/devicesupport/devicesettingswidget.cpp2
-rw-r--r--src/plugins/projectexplorer/editorsettingspropertiespage.cpp2
-rw-r--r--src/plugins/projectexplorer/environmentaspectwidget.cpp2
-rw-r--r--src/plugins/projectexplorer/extracompiler.cpp2
-rw-r--r--src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp12
-rw-r--r--src/plugins/projectexplorer/kitchooser.cpp6
-rw-r--r--src/plugins/projectexplorer/kitinformation.cpp11
-rw-r--r--src/plugins/projectexplorer/kitmanagerconfigwidget.cpp2
-rw-r--r--src/plugins/projectexplorer/projectexplorersettingspage.cpp2
-rw-r--r--src/plugins/projectexplorer/projectmodels.cpp3
-rw-r--r--src/plugins/projectexplorer/projecttreewidget.cpp2
-rw-r--r--src/plugins/projectexplorer/projectwindow.cpp2
-rw-r--r--src/plugins/projectexplorer/projectwizardpage.cpp6
-rw-r--r--src/plugins/projectexplorer/runconfigurationaspects.cpp2
-rw-r--r--src/plugins/projectexplorer/runsettingspropertiespage.cpp6
-rw-r--r--src/plugins/projectexplorer/selectablefilesmodel.cpp2
-rw-r--r--src/plugins/projectexplorer/sessiondialog.cpp2
-rw-r--r--src/plugins/projectexplorer/targetsettingspanel.cpp2
-rw-r--r--src/plugins/python/pythonproject.cpp2
24 files changed, 50 insertions, 53 deletions
diff --git a/src/plugins/projectexplorer/abiwidget.cpp b/src/plugins/projectexplorer/abiwidget.cpp
index d4bb9ccd5f..a75fd25f7c 100644
--- a/src/plugins/projectexplorer/abiwidget.cpp
+++ b/src/plugins/projectexplorer/abiwidget.cpp
@@ -85,15 +85,14 @@ AbiWidget::AbiWidget(QWidget *parent) : QWidget(parent),
d->m_abi->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
d->m_abi->setMinimumContentsLength(4);
layout->addWidget(d->m_abi);
- connect(d->m_abi, QOverload<int>::of(&QComboBox::currentIndexChanged),
- this, &AbiWidget::mainComboBoxChanged);
+ connect(d->m_abi, &QComboBox::currentIndexChanged, this, &AbiWidget::mainComboBoxChanged);
d->m_architectureComboBox = new QComboBox(this);
layout->addWidget(d->m_architectureComboBox);
for (int i = 0; i <= static_cast<int>(Abi::UnknownArchitecture); ++i)
d->m_architectureComboBox->addItem(Abi::toString(static_cast<Abi::Architecture>(i)), i);
d->m_architectureComboBox->setCurrentIndex(static_cast<int>(Abi::UnknownArchitecture));
- connect(d->m_architectureComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(d->m_architectureComboBox, &QComboBox::currentIndexChanged,
this, &AbiWidget::customComboBoxesChanged);
QLabel *separator1 = new QLabel(this);
@@ -106,7 +105,7 @@ AbiWidget::AbiWidget(QWidget *parent) : QWidget(parent),
for (int i = 0; i <= static_cast<int>(Abi::UnknownOS); ++i)
d->m_osComboBox->addItem(Abi::toString(static_cast<Abi::OS>(i)), i);
d->m_osComboBox->setCurrentIndex(static_cast<int>(Abi::UnknownOS));
- connect(d->m_osComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(d->m_osComboBox, &QComboBox::currentIndexChanged,
this, &AbiWidget::customOsComboBoxChanged);
QLabel *separator2 = new QLabel(this);
@@ -116,7 +115,7 @@ AbiWidget::AbiWidget(QWidget *parent) : QWidget(parent),
d->m_osFlavorComboBox = new QComboBox(this);
layout->addWidget(d->m_osFlavorComboBox);
- connect(d->m_osFlavorComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(d->m_osFlavorComboBox, &QComboBox::currentIndexChanged,
this, &AbiWidget::customComboBoxesChanged);
QLabel *separator3 = new QLabel(this);
@@ -129,7 +128,7 @@ AbiWidget::AbiWidget(QWidget *parent) : QWidget(parent),
for (int i = 0; i <= static_cast<int>(Abi::UnknownFormat); ++i)
d->m_binaryFormatComboBox->addItem(Abi::toString(static_cast<Abi::BinaryFormat>(i)), i);
d->m_binaryFormatComboBox->setCurrentIndex(static_cast<int>(Abi::UnknownFormat));
- connect(d->m_binaryFormatComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(d->m_binaryFormatComboBox, &QComboBox::currentIndexChanged,
this, &AbiWidget::customComboBoxesChanged);
QLabel *separator4 = new QLabel(this);
@@ -146,7 +145,7 @@ AbiWidget::AbiWidget(QWidget *parent) : QWidget(parent),
d->m_wordWidthComboBox->addItem(Abi::toString(0), 0);
// Setup current word width of 0 by default.
d->m_wordWidthComboBox->setCurrentIndex(d->m_wordWidthComboBox->count() - 1);
- connect(d->m_wordWidthComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(d->m_wordWidthComboBox, &QComboBox::currentIndexChanged,
this, &AbiWidget::customComboBoxesChanged);
layout->setStretchFactor(d->m_abi, 1);
diff --git a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp
index c014a27964..0beedd28be 100644
--- a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp
+++ b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp
@@ -123,11 +123,11 @@ BuildSettingsWidget::BuildSettingsWidget(Target *target) :
updateAddButtonMenu();
updateBuildSettings();
- connect(m_buildConfigurationComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_buildConfigurationComboBox, &QComboBox::currentIndexChanged,
this, &BuildSettingsWidget::currentIndexChanged);
connect(m_removeButton, &QAbstractButton::clicked,
- this, [this]() { deleteConfiguration(m_buildConfiguration); });
+ this, [this] { deleteConfiguration(m_buildConfiguration); });
connect(m_renameButton, &QAbstractButton::clicked,
this, &BuildSettingsWidget::renameConfiguration);
diff --git a/src/plugins/projectexplorer/customparserconfigdialog.cpp b/src/plugins/projectexplorer/customparserconfigdialog.cpp
index f67cd25b9d..b0236ab6fb 100644
--- a/src/plugins/projectexplorer/customparserconfigdialog.cpp
+++ b/src/plugins/projectexplorer/customparserconfigdialog.cpp
@@ -44,20 +44,20 @@ CustomParserConfigDialog::CustomParserConfigDialog(QWidget *parent) :
connect(ui->errorPattern, &QLineEdit::textChanged, this, &CustomParserConfigDialog::changed);
connect(ui->errorOutputMessage, &QLineEdit::textChanged,
this, &CustomParserConfigDialog::changed);
- connect(ui->errorFileNameCap, QOverload<int>::of(&QSpinBox::valueChanged),
+ connect(ui->errorFileNameCap, &QSpinBox::valueChanged,
this, &CustomParserConfigDialog::changed);
- connect(ui->errorLineNumberCap, QOverload<int>::of(&QSpinBox::valueChanged),
+ connect(ui->errorLineNumberCap, &QSpinBox::valueChanged,
this, &CustomParserConfigDialog::changed);
- connect(ui->errorMessageCap, QOverload<int>::of(&QSpinBox::valueChanged),
+ connect(ui->errorMessageCap, &QSpinBox::valueChanged,
this, &CustomParserConfigDialog::changed);
connect(ui->warningPattern, &QLineEdit::textChanged, this, &CustomParserConfigDialog::changed);
connect(ui->warningOutputMessage, &QLineEdit::textChanged,
this, &CustomParserConfigDialog::changed);
- connect(ui->warningFileNameCap, QOverload<int>::of(&QSpinBox::valueChanged),
+ connect(ui->warningFileNameCap, &QSpinBox::valueChanged,
this, &CustomParserConfigDialog::changed);
- connect(ui->warningLineNumberCap, QOverload<int>::of(&QSpinBox::valueChanged),
+ connect(ui->warningLineNumberCap, &QSpinBox::valueChanged,
this, &CustomParserConfigDialog::changed);
- connect(ui->warningMessageCap, QOverload<int>::of(&QSpinBox::valueChanged),
+ connect(ui->warningMessageCap, &QSpinBox::valueChanged,
this, &CustomParserConfigDialog::changed);
changed();
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp
index 8ed88ea759..92de0ae165 100644
--- a/src/plugins/projectexplorer/customtoolchain.cpp
+++ b/src/plugins/projectexplorer/customtoolchain.cpp
@@ -432,7 +432,7 @@ CustomToolChainConfigWidget::CustomToolChainConfigWidget(CustomToolChain *tc) :
this, &CustomToolChainConfigWidget::updateSummaries);
connect(m_cxx11Flags, &QLineEdit::textChanged, this, &ToolChainConfigWidget::dirty);
connect(m_mkspecs, &QLineEdit::textChanged, this, &ToolChainConfigWidget::dirty);
- connect(m_errorParserComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_errorParserComboBox, &QComboBox::currentIndexChanged,
this, &CustomToolChainConfigWidget::errorParserChanged);
errorParserChanged();
}
diff --git a/src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.cpp b/src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.cpp
index 17eb79ac9e..bde81cbd5e 100644
--- a/src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.cpp
+++ b/src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.cpp
@@ -184,7 +184,7 @@ DeviceProcessesDialogPrivate::DeviceProcessesDialogPrivate(KitChooser *chooser,
proxyModel.setFilterRegularExpression(processFilterLineEdit->text());
- connect(processFilterLineEdit, QOverload<const QString &>::of(&FancyLineEdit::textChanged),
+ connect(processFilterLineEdit, &FancyLineEdit::textChanged,
&proxyModel, QOverload<const QString &>::of(&ProcessListFilterModel::setFilterRegularExpression));
connect(procView->selectionModel(), &QItemSelectionModel::selectionChanged,
this, &DeviceProcessesDialogPrivate::updateButtons);
diff --git a/src/plugins/projectexplorer/devicesupport/devicesettingswidget.cpp b/src/plugins/projectexplorer/devicesupport/devicesettingswidget.cpp
index fb7ccf7046..a0b5aefaa0 100644
--- a/src/plugins/projectexplorer/devicesupport/devicesettingswidget.cpp
+++ b/src/plugins/projectexplorer/devicesupport/devicesettingswidget.cpp
@@ -121,7 +121,7 @@ void DeviceSettingsWidget::initGui()
lastIndex = 0;
if (lastIndex < m_ui->configurationComboBox->count())
m_ui->configurationComboBox->setCurrentIndex(lastIndex);
- connect(m_ui->configurationComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_ui->configurationComboBox, &QComboBox::currentIndexChanged,
this, &DeviceSettingsWidget::currentDeviceChanged);
currentDeviceChanged(currentIndex());
connect(m_ui->defaultDeviceButton, &QAbstractButton::clicked,
diff --git a/src/plugins/projectexplorer/editorsettingspropertiespage.cpp b/src/plugins/projectexplorer/editorsettingspropertiespage.cpp
index 082566d439..bd20a2f6c8 100644
--- a/src/plugins/projectexplorer/editorsettingspropertiespage.cpp
+++ b/src/plugins/projectexplorer/editorsettingspropertiespage.cpp
@@ -101,7 +101,7 @@ EditorSettingsWidget::EditorSettingsWidget(Project *project) : m_project(project
config, &EditorConfiguration::setShowWrapColumn);
connect(m_useIndenter, &QAbstractButton::toggled,
config, &EditorConfiguration::setUseIndenter);
- connect(m_wrapColumn, QOverload<int>::of(&QSpinBox::valueChanged),
+ connect(m_wrapColumn, &QSpinBox::valueChanged,
config, &EditorConfiguration::setWrapColumn);
connect(m_behaviorSettings, &TextEditor::BehaviorSettingsWidget::typingSettingsChanged,
diff --git a/src/plugins/projectexplorer/environmentaspectwidget.cpp b/src/plugins/projectexplorer/environmentaspectwidget.cpp
index be332b289f..4f69c4377e 100644
--- a/src/plugins/projectexplorer/environmentaspectwidget.cpp
+++ b/src/plugins/projectexplorer/environmentaspectwidget.cpp
@@ -63,7 +63,7 @@ EnvironmentAspectWidget::EnvironmentAspectWidget(EnvironmentAspect *aspect)
m_baseEnvironmentComboBox->setEnabled(false);
m_baseEnvironmentComboBox->setCurrentIndex(m_aspect->baseEnvironmentBase());
- connect(m_baseEnvironmentComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_baseEnvironmentComboBox, &QComboBox::currentIndexChanged,
this, &EnvironmentAspectWidget::baseEnvironmentSelected);
m_baseLayout->addWidget(m_baseEnvironmentComboBox);
diff --git a/src/plugins/projectexplorer/extracompiler.cpp b/src/plugins/projectexplorer/extracompiler.cpp
index ded77e903d..2112b01b20 100644
--- a/src/plugins/projectexplorer/extracompiler.cpp
+++ b/src/plugins/projectexplorer/extracompiler.cpp
@@ -83,7 +83,7 @@ ExtraCompiler::ExtraCompiler(const Project *project, const FilePath &source,
d->contents.insert(target, QByteArray());
d->timer.setSingleShot(true);
- connect(&d->timer, &QTimer::timeout, this, [this](){
+ connect(&d->timer, &QTimer::timeout, this, [this] {
if (d->dirty && d->lastEditor) {
d->dirty = false;
run(d->lastEditor->document()->contents());
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp
index a4a4480944..90771adf29 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp
+++ b/src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp
@@ -115,7 +115,7 @@ public:
m_expander.setDisplayName(JsonFieldPage::tr("Line Edit Validator Expander"));
m_expander.setAccumulating(true);
m_expander.registerVariable("INPUT", JsonFieldPage::tr("The text edit input to fix up."),
- [this]() { return m_currentInput; });
+ [this] { return m_currentInput; });
m_expander.registerSubProvider([expander]() -> MacroExpander * { return expander; });
setValidationFunction([this, pattern](FancyLineEdit *, QString *) {
return pattern.match(text()).hasMatch();
@@ -1241,7 +1241,7 @@ void ComboBoxField::setup(JsonFieldPage *page, const QString &name)
// the selectionModel does not behave like expected and wanted - so we block signals here
// (for example there was some losing focus thing when hovering over items, ...)
selectionModel()->blockSignals(true);
- QObject::connect(w, QOverload<int>::of(&QComboBox::activated), [w, this](int index) {
+ QObject::connect(w, &QComboBox::activated, [w, this](int index) {
w->blockSignals(true);
selectionModel()->clearSelection();
@@ -1251,7 +1251,7 @@ void ComboBoxField::setup(JsonFieldPage *page, const QString &name)
selectionModel()->blockSignals(true);
w->blockSignals(false);
});
- page->registerObjectAsFieldWithName<QComboBox>(name, w, QOverload<int>::of(&QComboBox::activated), [w]() {
+ page->registerObjectAsFieldWithName<QComboBox>(name, w, &QComboBox::activated, [w] {
return w->currentData(ValueRole);
});
QObject::connect(selectionModel(), &QItemSelectionModel::selectionChanged, page, [page]() {
@@ -1262,8 +1262,7 @@ void ComboBoxField::setup(JsonFieldPage *page, const QString &name)
QWidget *ComboBoxField::createWidget(const QString & /*displayName*/, JsonFieldPage * /*page*/)
{
const auto comboBox = new QComboBox;
- QObject::connect(comboBox, QOverload<int>::of(&QComboBox::activated),
- [this] { setHasUserChanges(); });
+ QObject::connect(comboBox, &QComboBox::activated, [this] { setHasUserChanges(); });
return comboBox;
}
@@ -1317,7 +1316,8 @@ void IconListField::setup(JsonFieldPage *page, const QString &name)
w->setModel(itemModel());
setSelectionModel(w->selectionModel());
- page->registerObjectAsFieldWithName<QItemSelectionModel>(name, selectionModel(), &QItemSelectionModel::selectionChanged, [this]() {
+ page->registerObjectAsFieldWithName<QItemSelectionModel>(name, selectionModel(),
+ &QItemSelectionModel::selectionChanged, [this] {
const QModelIndex i = selectionModel()->currentIndex();
if (i.isValid())
return i.data(ValueRole);
diff --git a/src/plugins/projectexplorer/kitchooser.cpp b/src/plugins/projectexplorer/kitchooser.cpp
index 531e904b7f..8780d70488 100644
--- a/src/plugins/projectexplorer/kitchooser.cpp
+++ b/src/plugins/projectexplorer/kitchooser.cpp
@@ -60,10 +60,8 @@ KitChooser::KitChooser(QWidget *parent) :
layout->addWidget(m_manageButton);
setFocusProxy(m_manageButton);
- connect(m_chooser, QOverload<int>::of(&QComboBox::currentIndexChanged),
- this, &KitChooser::onCurrentIndexChanged);
- connect(m_chooser, QOverload<int>::of(&QComboBox::activated),
- this, &KitChooser::onActivated);
+ connect(m_chooser, &QComboBox::currentIndexChanged, this, &KitChooser::onCurrentIndexChanged);
+ connect(m_chooser, &QComboBox::activated, this, &KitChooser::onActivated);
connect(m_manageButton, &QAbstractButton::clicked, this, &KitChooser::onManageButtonClicked);
connect(KitManager::instance(), &KitManager::kitsChanged, this, &KitChooser::populate);
}
diff --git a/src/plugins/projectexplorer/kitinformation.cpp b/src/plugins/projectexplorer/kitinformation.cpp
index 23ed1edc26..856905f3ab 100644
--- a/src/plugins/projectexplorer/kitinformation.cpp
+++ b/src/plugins/projectexplorer/kitinformation.cpp
@@ -241,8 +241,9 @@ public:
layout->addWidget(cb, row, 1);
++row;
- connect(cb, QOverload<int>::of(&QComboBox::currentIndexChanged),
- this, [this, l](int idx) { currentToolChainChanged(l, idx); });
+ connect(cb, &QComboBox::currentIndexChanged, this, [this, l](int idx) {
+ currentToolChainChanged(l, idx);
+ });
}
refresh();
@@ -782,7 +783,7 @@ public:
m_comboBox->addItem(factory->displayName(), factory->deviceType().toSetting());
m_comboBox->setToolTip(ki->description());
refresh();
- connect(m_comboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_comboBox, &QComboBox::currentIndexChanged,
this, &DeviceTypeKitAspectWidget::currentTypeChanged);
}
@@ -915,7 +916,7 @@ public:
this, &DeviceKitAspectWidget::modelAboutToReset);
connect(m_model, &QAbstractItemModel::modelReset,
this, &DeviceKitAspectWidget::modelReset);
- connect(m_comboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_comboBox, &QComboBox::currentIndexChanged,
this, &DeviceKitAspectWidget::currentDeviceChanged);
}
@@ -1178,7 +1179,7 @@ public:
this, &BuildDeviceKitAspectWidget::modelAboutToReset);
connect(m_model, &QAbstractItemModel::modelReset,
this, &BuildDeviceKitAspectWidget::modelReset);
- connect(m_comboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_comboBox, &QComboBox::currentIndexChanged,
this, &BuildDeviceKitAspectWidget::currentDeviceChanged);
}
diff --git a/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp b/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp
index f20d0c69db..b5bda5f573 100644
--- a/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp
+++ b/src/plugins/projectexplorer/kitmanagerconfigwidget.cpp
@@ -117,7 +117,7 @@ KitManagerConfigWidget::KitManagerConfigWidget(Kit *k) :
auto chooser = new VariableChooser(this);
chooser->addSupportedWidget(m_nameEdit);
- chooser->addMacroExpanderProvider([this]() { return m_modifiedKit->macroExpander(); });
+ chooser->addMacroExpanderProvider([this] { return m_modifiedKit->macroExpander(); });
for (KitAspect *aspect : KitManager::kitAspects())
addAspectToWorkingCopy(aspect);
diff --git a/src/plugins/projectexplorer/projectexplorersettingspage.cpp b/src/plugins/projectexplorer/projectexplorersettingspage.cpp
index 22163a9f45..863a86c3a1 100644
--- a/src/plugins/projectexplorer/projectexplorersettingspage.cpp
+++ b/src/plugins/projectexplorer/projectexplorersettingspage.cpp
@@ -88,7 +88,7 @@ ProjectExplorerSettingsWidget::ProjectExplorerSettingsWidget(QWidget *parent) :
m_ui.directoryButtonGroup->setId(m_ui.currentDirectoryRadioButton, UseCurrentDirectory);
m_ui.directoryButtonGroup->setId(m_ui.directoryRadioButton, UseProjectDirectory);
- connect(m_ui.directoryButtonGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked),
+ connect(m_ui.directoryButtonGroup, &QButtonGroup::buttonClicked,
this, &ProjectExplorerSettingsWidget::slotDirectoryButtonGroupChanged);
}
diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp
index 6d14768ff3..68152d940c 100644
--- a/src/plugins/projectexplorer/projectmodels.cpp
+++ b/src/plugins/projectexplorer/projectmodels.cpp
@@ -628,8 +628,7 @@ public:
m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(valid);
});
targetDirLayout->addWidget(m_targetDirChooser);
- connect(m_buttonGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked),
- this, [this] {
+ connect(m_buttonGroup, &QButtonGroup::buttonClicked, this, [this] {
switch (dropAction()) {
case DropAction::CopyWithFiles:
case DropAction::MoveWithFiles:
diff --git a/src/plugins/projectexplorer/projecttreewidget.cpp b/src/plugins/projectexplorer/projecttreewidget.cpp
index 31f3cb0f7c..67b36e36cf 100644
--- a/src/plugins/projectexplorer/projecttreewidget.cpp
+++ b/src/plugins/projectexplorer/projecttreewidget.cpp
@@ -262,7 +262,7 @@ ProjectTreeWidget::ProjectTreeWidget(QWidget *parent) : QWidget(parent)
Command *cmd = ActionManager::registerAction(focusDocumentInProjectTree, focusActionId);
cmd->setDefaultKeySequence(
QKeySequence(useMacShortcuts ? tr("Meta+Shift+L") : tr("Alt+Shift+L")));
- connect(focusDocumentInProjectTree, &QAction::triggered, this, [this]() {
+ connect(focusDocumentInProjectTree, &QAction::triggered, this, [this] {
syncFromDocumentManager();
});
}
diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp
index d360ec3327..68c2bbd5ce 100644
--- a/src/plugins/projectexplorer/projectwindow.cpp
+++ b/src/plugins/projectexplorer/projectwindow.cpp
@@ -555,7 +555,7 @@ public:
m_projectSelection = new QComboBox;
m_projectSelection->setModel(&m_comboBoxModel);
- connect(m_projectSelection, QOverload<int>::of(&QComboBox::activated),
+ connect(m_projectSelection, &QComboBox::activated,
this, &ProjectWindowPrivate::projectSelected, Qt::QueuedConnection);
const auto switchProjectAction = new QAction(this);
diff --git a/src/plugins/projectexplorer/projectwizardpage.cpp b/src/plugins/projectexplorer/projectwizardpage.cpp
index 5a6c3380e7..f8efc6fc6e 100644
--- a/src/plugins/projectexplorer/projectwizardpage.cpp
+++ b/src/plugins/projectexplorer/projectwizardpage.cpp
@@ -286,9 +286,9 @@ ProjectWizardPage::ProjectWizardPage(QWidget *parent) : WizardPage(parent),
{
m_ui->setupUi(this);
m_ui->vcsManageButton->setText(ICore::msgShowOptionsDialog());
- connect(m_ui->projectComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_ui->projectComboBox, &QComboBox::currentIndexChanged,
this, &ProjectWizardPage::projectChanged);
- connect(m_ui->addToVersionControlComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_ui->addToVersionControlComboBox, &QComboBox::currentIndexChanged,
this, &ProjectWizardPage::versionControlChanged);
connect(m_ui->vcsManageButton, &QAbstractButton::clicked, this, &ProjectWizardPage::manageVcs);
setProperty(SHORT_TITLE_PROPERTY, tr("Summary"));
@@ -301,7 +301,7 @@ ProjectWizardPage::ProjectWizardPage(QWidget *parent) : WizardPage(parent),
ProjectWizardPage::~ProjectWizardPage()
{
- disconnect(m_ui->projectComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ disconnect(m_ui->projectComboBox, &QComboBox::currentIndexChanged,
this, &ProjectWizardPage::projectChanged);
delete m_ui;
}
diff --git a/src/plugins/projectexplorer/runconfigurationaspects.cpp b/src/plugins/projectexplorer/runconfigurationaspects.cpp
index d3eeb9745f..d927aaeddf 100644
--- a/src/plugins/projectexplorer/runconfigurationaspects.cpp
+++ b/src/plugins/projectexplorer/runconfigurationaspects.cpp
@@ -849,7 +849,7 @@ void InterpreterAspect::addToLayout(LayoutBuilder &builder)
m_comboBox = new QComboBox;
updateComboBox();
- connect(m_comboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_comboBox, &QComboBox::currentIndexChanged,
this, &InterpreterAspect::updateCurrentInterpreter);
auto manageButton = new QPushButton(tr("Manage..."));
diff --git a/src/plugins/projectexplorer/runsettingspropertiespage.cpp b/src/plugins/projectexplorer/runsettingspropertiespage.cpp
index 546c215b34..cd142d1996 100644
--- a/src/plugins/projectexplorer/runsettingspropertiespage.cpp
+++ b/src/plugins/projectexplorer/runsettingspropertiespage.cpp
@@ -140,7 +140,7 @@ RunSettingsWidget::RunSettingsWidget(Target *target) :
connect(m_addDeployMenu, &QMenu::aboutToShow,
this, &RunSettingsWidget::aboutToShowDeployMenu);
- connect(m_deployConfigurationCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_deployConfigurationCombo, &QComboBox::currentIndexChanged,
this, &RunSettingsWidget::currentDeployConfigurationChanged);
connect(m_removeDeployToolButton, &QAbstractButton::clicked,
this, &RunSettingsWidget::removeDeployConfiguration);
@@ -172,7 +172,7 @@ RunSettingsWidget::RunSettingsWidget(Target *target) :
connect(m_addRunToolButton, &QAbstractButton::clicked,
this, &RunSettingsWidget::showAddRunConfigDialog);
- connect(m_runConfigurationCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
+ connect(m_runConfigurationCombo, &QComboBox::currentIndexChanged,
this, &RunSettingsWidget::currentRunConfigurationChanged);
connect(m_removeRunToolButton, &QAbstractButton::clicked,
this, &RunSettingsWidget::removeRunConfiguration);
@@ -437,7 +437,7 @@ void RunSettingsWidget::setConfigurationWidget(RunConfiguration *rc)
m_runLayout->addWidget(m_runConfigurationWidget);
updateEnabledState();
connect(m_runConfiguration, &RunConfiguration::enabledChanged,
- m_runConfigurationWidget, [this]() { updateEnabledState(); });
+ m_runConfigurationWidget, [this] { updateEnabledState(); });
}
addRunControlWidgets();
}
diff --git a/src/plugins/projectexplorer/selectablefilesmodel.cpp b/src/plugins/projectexplorer/selectablefilesmodel.cpp
index 1328253130..80eb130b73 100644
--- a/src/plugins/projectexplorer/selectablefilesmodel.cpp
+++ b/src/plugins/projectexplorer/selectablefilesmodel.cpp
@@ -565,7 +565,7 @@ SelectableFilesWidget::SelectableFilesWidget(QWidget *parent) :
connect(m_baseDirChooser, &Utils::PathChooser::validChanged,
this, &SelectableFilesWidget::baseDirectoryChanged);
connect(m_startParsingButton, &QAbstractButton::clicked,
- this, [this]() { startParsing(m_baseDirChooser->filePath()); });
+ this, [this] { startParsing(m_baseDirChooser->filePath()); });
m_selectFilesFilterLabel->setText(tr("Select files matching:"));
m_selectFilesFilterEdit->setText(selectFilter);
diff --git a/src/plugins/projectexplorer/sessiondialog.cpp b/src/plugins/projectexplorer/sessiondialog.cpp
index 09e2146abd..a7a1a6fcd4 100644
--- a/src/plugins/projectexplorer/sessiondialog.cpp
+++ b/src/plugins/projectexplorer/sessiondialog.cpp
@@ -93,7 +93,7 @@ SessionNameInputDialog::SessionNameInputDialog(QWidget *parent)
m_okButton = buttons->button(QDialogButtonBox::Ok);
m_switchToButton = new QPushButton;
buttons->addButton(m_switchToButton, QDialogButtonBox::AcceptRole);
- connect(m_switchToButton, &QPushButton::clicked, [this]() {
+ connect(m_switchToButton, &QPushButton::clicked, this, [this] {
m_usedSwitchTo = true;
});
connect(buttons, &QDialogButtonBox::accepted, this, &QDialog::accept);
diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp
index 53514032a3..abdd2ea739 100644
--- a/src/plugins/projectexplorer/targetsettingspanel.cpp
+++ b/src/plugins/projectexplorer/targetsettingspanel.cpp
@@ -320,7 +320,7 @@ public:
Kit *k = KitManager::kit(m_kitId);
if (!k)
break;
- const QString extraText = [this]() {
+ const QString extraText = [this] {
if (m_kitErrorsForProject)
return QString("<h3>" + tr("Kit is unsuited for project") + "</h3>");
if (!isEnabled())
diff --git a/src/plugins/python/pythonproject.cpp b/src/plugins/python/pythonproject.cpp
index 7d0fc27f0f..40c9138e0c 100644
--- a/src/plugins/python/pythonproject.cpp
+++ b/src/plugins/python/pythonproject.cpp
@@ -497,7 +497,7 @@ Project::RestoreResult PythonProject::fromMap(const QVariantMap &map, QString *e
PythonBuildSystem::PythonBuildSystem(Target *target)
: BuildSystem(target)
{
- connect(target->project(), &Project::projectFileIsDirty, this, [this]() { triggerParsing(); });
+ connect(target->project(), &Project::projectFileIsDirty, this, [this] { triggerParsing(); });
QTimer::singleShot(0, this, &PythonBuildSystem::triggerParsing);
}