Clazy: Add second batch of SIGNAL/SLOT removal

This commit is contained in:
Felix Kauselmann
2021-06-03 16:17:07 +02:00
parent f813a018d2
commit ae8e47d863
19 changed files with 80 additions and 80 deletions

View File

@ -984,7 +984,7 @@ PictureFlow::PictureFlow(QWidget *parent, FlowType flowType)
d->animator = new PictureFlowAnimator;
d->animator->state = d->state;
QObject::connect(&d->animator->animateTimer, SIGNAL(timeout()), this, SLOT(updateAnimation()));
QObject::connect(&d->animator->animateTimer, &QTimer::timeout, this, &PictureFlow::updateAnimation);
QObject::connect(&d->triggerTimer, SIGNAL(timeout()), this, SLOT(render()));
@ -1299,9 +1299,9 @@ void PictureFlow::updateAnimation() //bucle principal
if (d->animator->animating == true) {
int difference = 10 - now.elapsed();
if (difference >= 0 && !frameSkiped)
QTimer::singleShot(difference, this, SLOT(updateAnimation()));
QTimer::singleShot(difference, this, &PictureFlow::updateAnimation);
else {
QTimer::singleShot(0, this, SLOT(updateAnimation()));
QTimer::singleShot(0, this, &PictureFlow::updateAnimation);
if (!frameSkiped)
framesSkip = -((difference - 10) / 10);
}