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

@ -135,8 +135,9 @@ void ClassicComicsView::setModel(ComicModel *model)
} else {
connect(model, &QAbstractItemModel::dataChanged, this, &ClassicComicsView::applyModelChanges, Qt::UniqueConnection);
connect(model, &QAbstractItemModel::rowsRemoved, this, &ClassicComicsView::removeItemsFromFlow, Qt::UniqueConnection);
connect(model, SIGNAL(resortedIndexes(QList<int>)), comicFlow, SLOT(resortCovers(QList<int>)), Qt::UniqueConnection);
connect(model, SIGNAL(newSelectedIndex(QModelIndex)), this, SLOT(setCurrentIndex(QModelIndex)), Qt::UniqueConnection);
//TODO: Missing method resortCovers?
connect(model, &ComicModel::resortedIndexes, comicFlow, &ComicFlowWidget::resortCovers, Qt::UniqueConnection);
connect(model, &ComicModel::newSelectedIndex, this, &ClassicComicsView::setCurrentIndex, Qt::UniqueConnection);
tableView->setModel(model);
if (model->rowCount() > 0)