summaryrefslogtreecommitdiff
path: root/src/plugins/android/androidmanifesteditorwidget.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-07-19 22:51:32 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-07-20 10:30:48 +0000
commita98b185e90557bd12ec43f4268ff3943bf4c1b61 (patch)
tree037b579e933808ceec01e13ea9f34359592956ac /src/plugins/android/androidmanifesteditorwidget.cpp
parent0dae822ca3715e31b2bb95afe89703465020d6a8 (diff)
downloadqt-creator-a98b185e90557bd12ec43f4268ff3943bf4c1b61.tar.gz
Drop Qt5: Android, IOS & WASM: Get rid of QOverload
Add a context object into some lambdas. Change-Id: I72631aeb36703f8f335f3819796fb52148f1b377 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/android/androidmanifesteditorwidget.cpp')
-rw-r--r--src/plugins/android/androidmanifesteditorwidget.cpp37
1 files changed, 13 insertions, 24 deletions
diff --git a/src/plugins/android/androidmanifesteditorwidget.cpp b/src/plugins/android/androidmanifesteditorwidget.cpp
index b04ce6de5e..2bc386bda5 100644
--- a/src/plugins/android/androidmanifesteditorwidget.cpp
+++ b/src/plugins/android/androidmanifesteditorwidget.cpp
@@ -380,16 +380,11 @@ QGroupBox *AndroidManifestEditorWidget::createPackageFormLayout(QWidget *parent)
connect(m_packageNameLineEdit, &QLineEdit::textEdited,
this, &AndroidManifestEditorWidget::setPackageName);
- connect(m_versionCodeLineEdit, &QLineEdit::textEdited,
- this, [this]() { setDirty(); });
- connect(m_versionNameLinedit, &QLineEdit::textEdited,
- this, [this]() { setDirty(); });
- connect(m_androidMinSdkVersion,
- QOverload<int>::of(&QComboBox::currentIndexChanged),
- this, [this]() { setDirty(); });
- connect(m_androidTargetSdkVersion,
- QOverload<int>::of(&QComboBox::currentIndexChanged),
- this, [this]() { setDirty(); });
+ connect(m_versionCodeLineEdit, &QLineEdit::textEdited, this, [this] { setDirty(); });
+ connect(m_versionNameLinedit, &QLineEdit::textEdited, this, [this] { setDirty(); });
+ connect(m_androidMinSdkVersion, &QComboBox::currentIndexChanged, this, [this] { setDirty(); });
+ connect(m_androidTargetSdkVersion, &QComboBox::currentIndexChanged,
+ this, [this] { setDirty(); });
return packageGroupBox;
}
@@ -459,16 +454,10 @@ QGroupBox *Android::Internal::AndroidManifestEditorWidget::createApplicationGrou
}
applicationGroupBox->setLayout(formLayout);
- connect(m_appNameLineEdit, &QLineEdit::textEdited,
- this, [this]() { setDirty(); });
- connect(m_activityNameLineEdit, &QLineEdit::textEdited,
- this, [this]() { setDirty(); });
- connect(m_styleExtractMethod,
- QOverload<int>::of(&QComboBox::currentIndexChanged),
- this, [this]() { setDirty(); });
- connect(m_screenOrientation,
- QOverload<int>::of(&QComboBox::currentIndexChanged),
- this, [this]() { setDirty(); });
+ connect(m_appNameLineEdit, &QLineEdit::textEdited, this, [this] { setDirty(); });
+ connect(m_activityNameLineEdit, &QLineEdit::textEdited, this, [this] { setDirty(); });
+ connect(m_styleExtractMethod, &QComboBox::currentIndexChanged, this, [this] { setDirty(); });
+ connect(m_screenOrientation, &QComboBox::currentIndexChanged, this, [this] { setDirty(); });
return applicationGroupBox;
}
@@ -490,15 +479,15 @@ QGroupBox *AndroidManifestEditorWidget::createAdvancedGroupBox(QWidget *parent)
m_textEditorWidget);
m_advanvedTabWidget->addTab(m_splashButtons, tr("Splash screen"));
- connect(m_services, &AndroidServiceWidget::servicesModified, this, [this]() { setDirty(); });
+ connect(m_services, &AndroidServiceWidget::servicesModified, this, [this] { setDirty(); });
connect(m_services, &AndroidServiceWidget::servicesModified,
this, &AndroidManifestEditorWidget::clearInvalidServiceInfo);
connect(m_services, &AndroidServiceWidget::servicesInvalid,
this, &AndroidManifestEditorWidget::setInvalidServiceInfo);
connect(m_splashButtons, &SplashScreenContainerWidget::splashScreensModified,
- this, [this]() { setDirty(); });
+ this, [this] { setDirty(); });
connect(m_iconButtons, &AndroidManifestEditorIconContainerWidget::iconsModified,
- this, [this]() { setDirty(); });
+ this, [this] { setDirty(); });
formLayout->addRow(m_advanvedTabWidget);
otherGroupBox->setLayout(formLayout);
@@ -748,7 +737,7 @@ void AndroidManifestEditorWidget::updateInfoBar(const QString &errorMessage, int
else
text = tr("%2: Could not parse file: \"%1\".").arg(errorMessage).arg(line);
Utils::InfoBarEntry infoBarEntry(infoBarId, text);
- infoBarEntry.addCustomButton(tr("Goto error"), [this]() {
+ infoBarEntry.addCustomButton(tr("Goto error"), [this] {
m_textEditorWidget->gotoLine(m_errorLine, m_errorColumn);
});
infoBar->removeInfo(infoBarId);