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

@@ -735,7 +735,7 @@ void SongLoader::StopTypefindAsync(const bool success) {
state_ = State::Finished;
success_ = success;
QMetaObject::invokeMethod(this, "StopTypefind", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, &SongLoader::StopTypefind, Qt::QueuedConnection);
}
#endif
@@ -746,7 +746,7 @@ void SongLoader::ScheduleTimeoutAsync() {
ScheduleTimeout();
}
else {
QMetaObject::invokeMethod(this, "ScheduleTimeout", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, &SongLoader::ScheduleTimeout, Qt::QueuedConnection);
}
}