mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -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,7 +22,7 @@ ImportComicsInfoDialog::ImportComicsInfoDialog(QWidget *parent)
|
||||
connect(accept, &QAbstractButton::clicked, this, &ImportComicsInfoDialog::import);
|
||||
|
||||
cancel = new QPushButton(tr("Cancel"));
|
||||
connect(cancel, SIGNAL(clicked()), this, SLOT(close()));
|
||||
connect(cancel, &QAbstractButton::clicked, this, &ImportComicsInfoDialog::close);
|
||||
//connect(cancel,SIGNAL(clicked()),this,SIGNAL(rejected()));
|
||||
|
||||
find = new QPushButton(QIcon(":/images/find_folder.png"), "");
|
||||
@ -85,7 +85,7 @@ void ImportComicsInfoDialog::import()
|
||||
auto importer = new Importer();
|
||||
importer->source = path->text();
|
||||
importer->dest = dest;
|
||||
connect(importer, SIGNAL(finished()), this, SLOT(close()));
|
||||
connect(importer, &QThread::finished, this, &ImportComicsInfoDialog::close);
|
||||
connect(importer, &QThread::finished, this, &QWidget::hide);
|
||||
importer->start();
|
||||
}
|
||||
|
Reference in New Issue
Block a user