Android: Pass context object to lambda connections

Remove some unneeded lambda () brackets.

Change-Id: Id00e2bc736683bb844cc7ba936ac9d21aa204416
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Jarek Kobus
2022-12-07 14:38:23 +01:00
parent 9afcf870a1
commit 0d74be319a
7 changed files with 17 additions and 17 deletions

View File

@@ -1021,11 +1021,11 @@ PasswordInputDialog::PasswordInputDialog(PasswordInputDialog::Context context,
mainLayout->addWidget(warningLabel);
mainLayout->addWidget(buttonBox);
connect(inputEdit, &QLineEdit::textChanged,[this](const QString &text) {
connect(inputEdit, &QLineEdit::textChanged, this, [this](const QString &text) {
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!text.isEmpty());
});
connect(buttonBox, &QDialogButtonBox::accepted, [this] {
connect(buttonBox, &QDialogButtonBox::accepted, this, [this] {
if (verifyCallback(inputEdit->text())) {
accept(); // Dialog accepted.
} else {