mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -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:
@ -28,7 +28,7 @@ void AddLibraryDialog::setupUI()
|
||||
connect(accept, &QAbstractButton::clicked, this, &AddLibraryDialog::add);
|
||||
|
||||
cancel = new QPushButton(tr("Cancel"));
|
||||
connect(cancel, SIGNAL(clicked()), this, SLOT(close()));
|
||||
connect(cancel, &QPushButton::close, this, &AddLibraryDialog::close);
|
||||
|
||||
find = new QPushButton(QIcon(":/images/find_folder.png"), "");
|
||||
connect(find, &QAbstractButton::clicked, this, &AddLibraryDialog::findPath);
|
||||
|
Reference in New Issue
Block a user