mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Clazy: Use fixits to refactor some old style signal connections
This commit is contained in:
@ -7,10 +7,10 @@ ComicFlow::ComicFlow(QWidget *parent, FlowType flowType)
|
||||
: YACReaderFlow(parent, flowType), worker(new WorkerThread<QImage>)
|
||||
{
|
||||
resetWorkerIndex();
|
||||
connect(&updateTimer, SIGNAL(timeout()), this, SLOT(updateImageData()));
|
||||
connect(&updateTimer, &QTimer::timeout, this, &ComicFlow::updateImageData);
|
||||
|
||||
connect(this, SIGNAL(centerIndexChanged(int)), this, SLOT(preload()));
|
||||
connect(this, SIGNAL(centerIndexChangedSilent(int)), this, SLOT(preload()));
|
||||
connect(this, &PictureFlow::centerIndexChanged, this, &ComicFlow::preload);
|
||||
connect(this, &PictureFlow::centerIndexChangedSilent, this, &ComicFlow::preload);
|
||||
|
||||
setReflectionEffect(PlainReflection);
|
||||
}
|
||||
|
Reference in New Issue
Block a user