mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Clazy: Use fixits to refactor some old style signal connections
This commit is contained in:
@ -33,7 +33,7 @@ SelectComic::SelectComic(QWidget *parent)
|
||||
|
||||
tableComics = new ScraperTableView(this);
|
||||
//connections
|
||||
connect(tableComics, SIGNAL(clicked(QModelIndex)), this, SLOT(loadComicInfo(QModelIndex)));
|
||||
connect(tableComics, &QAbstractItemView::clicked, this, &SelectComic::loadComicInfo);
|
||||
|
||||
paginator->setCustomLabel(tr("comics"));
|
||||
|
||||
@ -95,13 +95,13 @@ void SelectComic::loadComicInfo(const QModelIndex &mi)
|
||||
detailLabel->setAltText(loadingStyle.arg(tr("loading description")));
|
||||
|
||||
auto comicVineClient = new ComicVineClient;
|
||||
connect(comicVineClient, SIGNAL(comicCover(const QByteArray &)), this, SLOT(setCover(const QByteArray &)));
|
||||
connect(comicVineClient, SIGNAL(finished()), comicVineClient, SLOT(deleteLater()));
|
||||
connect(comicVineClient, &ComicVineClient::comicCover, this, &SelectComic::setCover);
|
||||
connect(comicVineClient, &ComicVineClient::finished, comicVineClient, &QObject::deleteLater);
|
||||
comicVineClient->getComicCover(coverURL);
|
||||
|
||||
auto comicVineClient2 = new ComicVineClient;
|
||||
connect(comicVineClient2, SIGNAL(comicDetail(QString)), this, SLOT(setDescription(QString)));
|
||||
connect(comicVineClient2, SIGNAL(finished()), comicVineClient2, SLOT(deleteLater()));
|
||||
connect(comicVineClient2, &ComicVineClient::comicDetail, this, &SelectComic::setDescription);
|
||||
connect(comicVineClient2, &ComicVineClient::finished, comicVineClient2, &QObject::deleteLater);
|
||||
comicVineClient2->getComicDetailAsync(id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user