Use new connect syntax for QMetaObject::invokeMethod

This commit is contained in:
Jonas Kvinge
2023-05-03 20:08:51 +02:00
parent 301e6b194a
commit e511b2faf9
14 changed files with 27 additions and 27 deletions

View File

@@ -68,7 +68,7 @@ AlbumCoverLoader::AlbumCoverLoader(QObject *parent)
void AlbumCoverLoader::ExitAsync() {
stop_requested_ = true;
QMetaObject::invokeMethod(this, "Exit", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, &AlbumCoverLoader::Exit, Qt::QueuedConnection);
}
@@ -166,7 +166,7 @@ quint64 AlbumCoverLoader::EnqueueTask(TaskPtr task) {
tasks_.enqueue(task);
}
QMetaObject::invokeMethod(this, "ProcessTasks", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, &AlbumCoverLoader::ProcessTasks, Qt::QueuedConnection);
return task->id;