mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Clazy: Use fixits to refactor some old style signal connections
This commit is contained in:
@ -23,14 +23,14 @@ ApiKeyDialog::ApiKeyDialog(QWidget *parent)
|
||||
info->setOpenExternalLinks(true);
|
||||
edit = new QLineEdit();
|
||||
edit->setPlaceholderText(tr("Paste here your Comic Vine API key"));
|
||||
connect(edit, SIGNAL(textChanged(QString)), this, SLOT(enableAccept(QString)));
|
||||
connect(edit, &QLineEdit::textChanged, this, &ApiKeyDialog::enableAccept);
|
||||
|
||||
acceptButton = new QPushButton(tr("Accept"));
|
||||
acceptButton->setDisabled(true);
|
||||
connect(acceptButton, SIGNAL(clicked()), this, SLOT(saveApiKey()));
|
||||
connect(acceptButton, &QAbstractButton::clicked, this, &ApiKeyDialog::saveApiKey);
|
||||
|
||||
cancelButton = new QPushButton(tr("Cancel"));
|
||||
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
|
||||
connect(cancelButton, &QAbstractButton::clicked, this, &QDialog::reject);
|
||||
|
||||
layout->addWidget(info);
|
||||
layout->addWidget(edit);
|
||||
|
Reference in New Issue
Block a user