mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
New slot syntax: Manually convert leftover QButtons
There is a bunch of QButton and similar widget connnections which cannot be converted to new slot syntax automatically. Fix them by hand and bundle them for testing.
This commit is contained in:
@ -22,10 +22,9 @@ void RenameLibraryDialog::setupUI()
|
||||
connect(accept, &QAbstractButton::clicked, this, &RenameLibraryDialog::rename);
|
||||
|
||||
cancel = new QPushButton(tr("Cancel"));
|
||||
connect(cancel, SIGNAL(clicked()), this, SLOT(close()));
|
||||
connect(cancel, &QAbstractButton::clicked, this, &RenameLibraryDialog::close);
|
||||
|
||||
auto nameLayout = new QHBoxLayout;
|
||||
|
||||
nameLayout->addWidget(newNameLabel);
|
||||
nameLayout->addWidget(newNameEdit);
|
||||
|
||||
@ -71,4 +70,4 @@ void RenameLibraryDialog::close()
|
||||
newNameEdit->clear();
|
||||
//accept->setEnabled(false);
|
||||
QDialog::close();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user