mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Comic/Render: Use overloads refactor some SIGNAL/SLOT connections to new syntax
This commit is contained in:
@ -61,8 +61,8 @@ void ComicController::service(HttpRequest &request, HttpResponse &response)
|
||||
|
||||
comicFile->moveToThread(thread);
|
||||
|
||||
connect(comicFile, SIGNAL(errorOpening()), thread, SLOT(quit()));
|
||||
connect(comicFile, SIGNAL(errorOpening(QString)), thread, SLOT(quit()));
|
||||
connect(comicFile, QOverload<>::of(&Comic::errorOpening), thread, &QThread::quit);
|
||||
connect(comicFile, QOverload<QString>::of(&Comic::errorOpening), thread, &QThread::quit);
|
||||
connect(comicFile, &Comic::imagesLoaded, thread, &QThread::quit);
|
||||
connect(thread, &QThread::started, comicFile, &Comic::process);
|
||||
connect(thread, &QThread::finished, thread, &QObject::deleteLater);
|
||||
|
@ -66,8 +66,8 @@ void ComicControllerV2::service(HttpRequest &request, HttpResponse &response)
|
||||
|
||||
comicFile->moveToThread(thread);
|
||||
|
||||
connect(comicFile, SIGNAL(errorOpening()), thread, SLOT(quit()));
|
||||
connect(comicFile, SIGNAL(errorOpening(QString)), thread, SLOT(quit()));
|
||||
connect(comicFile, QOverload<>::of(&Comic::errorOpening), thread, &QThread::quit);
|
||||
connect(comicFile, QOverload<QString>::of(&Comic::errorOpening), thread, &QThread::quit);
|
||||
connect(comicFile, &Comic::imagesLoaded, thread, &QThread::quit);
|
||||
connect(thread, &QThread::started, comicFile, &Comic::process);
|
||||
connect(thread, &QThread::finished, thread, &QObject::deleteLater);
|
||||
|
@ -53,8 +53,8 @@ void ComicControllerInReadingListV2::service(HttpRequest &request, HttpResponse
|
||||
|
||||
comicFile->moveToThread(thread);
|
||||
|
||||
connect(comicFile, SIGNAL(errorOpening()), thread, SLOT(quit()));
|
||||
connect(comicFile, SIGNAL(errorOpening(QString)), thread, SLOT(quit()));
|
||||
connect(comicFile, QOverload<>::of(&Comic::errorOpening), thread, &QThread::quit);
|
||||
connect(comicFile, QOverload<QString>::of(&Comic::errorOpening), thread, &QThread::quit);
|
||||
connect(comicFile, &Comic::imagesLoaded, thread, &QThread::quit);
|
||||
connect(thread, &QThread::started, comicFile, &Comic::process);
|
||||
connect(thread, &QThread::finished, thread, &QObject::deleteLater);
|
||||
|
Reference in New Issue
Block a user