forked from qt-creator/qt-creator
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user