mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
Common: Convert last signals to new slot syntax
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
HttpVersionChecker::HttpVersionChecker()
|
HttpVersionChecker::HttpVersionChecker()
|
||||||
: HttpWorker("https://raw.githubusercontent.com/YACReader/yacreader/master/common/yacreader_global.h")
|
: HttpWorker("https://raw.githubusercontent.com/YACReader/yacreader/master/common/yacreader_global.h")
|
||||||
{
|
{
|
||||||
connect(this, SIGNAL(dataReady(const QByteArray &)), this, SLOT(checkNewVersion(const QByteArray &)));
|
connect(this, &HttpVersionChecker::dataReady, this, QOverload<const QByteArray &>::of(&HttpVersionChecker::checkNewVersion));
|
||||||
}
|
}
|
||||||
|
|
||||||
void HttpVersionChecker::checkNewVersion(const QByteArray &data)
|
void HttpVersionChecker::checkNewVersion(const QByteArray &data)
|
||||||
|
@ -986,7 +986,7 @@ PictureFlow::PictureFlow(QWidget *parent, FlowType flowType)
|
|||||||
d->animator->state = d->state;
|
d->animator->state = d->state;
|
||||||
QObject::connect(&d->animator->animateTimer, &QTimer::timeout, this, &PictureFlow::updateAnimation);
|
QObject::connect(&d->animator->animateTimer, &QTimer::timeout, this, &PictureFlow::updateAnimation);
|
||||||
|
|
||||||
QObject::connect(&d->triggerTimer, SIGNAL(timeout()), this, SLOT(render()));
|
QObject::connect(&d->triggerTimer, &QTimer::timeout, this, QOverload<>::of(&PictureFlow::render));
|
||||||
|
|
||||||
#ifdef PICTUREFLOW_QT4
|
#ifdef PICTUREFLOW_QT4
|
||||||
setAttribute(Qt::WA_StaticContents, true);
|
setAttribute(Qt::WA_StaticContents, true);
|
||||||
|
Reference in New Issue
Block a user