From 76ab23b7762e5f90555b5969b1e8bba74627d709 Mon Sep 17 00:00:00 2001 From: Felix Kauselmann Date: Tue, 22 Jun 2021 12:39:13 +0200 Subject: [PATCH] Common: Convert last signals to new slot syntax --- common/check_new_version.cpp | 2 +- common/pictureflow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/check_new_version.cpp b/common/check_new_version.cpp index 574adfdb..42537fe1 100644 --- a/common/check_new_version.cpp +++ b/common/check_new_version.cpp @@ -15,7 +15,7 @@ HttpVersionChecker::HttpVersionChecker() : 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::of(&HttpVersionChecker::checkNewVersion)); } void HttpVersionChecker::checkNewVersion(const QByteArray &data) diff --git a/common/pictureflow.cpp b/common/pictureflow.cpp index 5499d7c7..3350db28 100644 --- a/common/pictureflow.cpp +++ b/common/pictureflow.cpp @@ -778,7 +778,7 @@ QImage *PictureFlowSoftwareRenderer::surface(int slideIndex) { for(int i = iInit-(j-jInit); i < iInit; i ++) { - + painter.drawPoint(i,j); } }*/ @@ -986,7 +986,7 @@ PictureFlow::PictureFlow(QWidget *parent, FlowType flowType) d->animator->state = d->state; 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 setAttribute(Qt::WA_StaticContents, true);