mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Clazy: Add second batch of SIGNAL/SLOT removal
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user