mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Comic/Render: Use overloads refactor some SIGNAL/SLOT connections to new syntax
This commit is contained in:
@ -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; };
|
||||
|
||||
|
Reference in New Issue
Block a user