ComicViews: Convert to new syntax, add clazy exception for QML signals

This commit is contained in:
Felix Kauselmann
2021-06-22 12:33:54 +02:00
parent 5b66153390
commit 79d004c42b
3 changed files with 12 additions and 11 deletions

View File

@ -82,8 +82,9 @@ InfoComicsView::InfoComicsView(QWidget *parent)
flow = rootObject->findChild<QObject *>("flow");
list = rootObject->findChild<QObject *>("list");
connect(flow, SIGNAL(currentCoverChanged(int)), this, SLOT(updateInfoForIndex(int)));
connect(flow, SIGNAL(currentCoverChanged(int)), this, SLOT(setCurrentIndex(int)));
// QML signals only work with old style signal slot syntax
connect(flow, SIGNAL(currentCoverChanged(int)), this, SLOT(updateInfoForIndex(int))); // clazy:exclude=old-style-connect
connect(flow, SIGNAL(currentCoverChanged(int)), this, SLOT(setCurrentIndex(int))); // clazy:exclude=old-style-connect
selectionHelper = new YACReaderComicsSelectionHelper(this);
comicInfoHelper = new YACReaderComicInfoHelper(this);