Comic/Render: Use overloads refactor some SIGNAL/SLOT connections to new syntax

This commit is contained in:
Felix Kauselmann
2021-06-11 11:46:54 +02:00
parent ae8e47d863
commit 47324e7f22
6 changed files with 25 additions and 27 deletions

View File

@ -127,8 +127,8 @@ Comic::~Comic()
void Comic::setup()
{
connect(this, &Comic::pageChanged, this, &Comic::checkIsBookmark);
connect(this, SIGNAL(imageLoaded(int)), this, SLOT(updateBookmarkImage(int)));
connect(this, SIGNAL(imageLoaded(int)), this, SLOT(setPageLoaded(int)));
connect(this, QOverload<int>::of(&Comic::imageLoaded), this, &Comic::updateBookmarkImage);
connect(this, QOverload<int>::of(&Comic::imageLoaded), this, &Comic::setPageLoaded);
auto l = [&]() { _errorOpening = true; };