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

@@ -115,7 +115,7 @@ CollectionWatcher::CollectionWatcher(Song::Source source, QObject *parent)
}
void CollectionWatcher::ExitAsync() {
QMetaObject::invokeMethod(this, "Exit", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, &CollectionWatcher::Exit, Qt::QueuedConnection);
}
void CollectionWatcher::Exit() {
@@ -131,7 +131,7 @@ void CollectionWatcher::Exit() {
void CollectionWatcher::ReloadSettingsAsync() {
QMetaObject::invokeMethod(this, "ReloadSettings", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, &CollectionWatcher::ReloadSettings, Qt::QueuedConnection);
}
@@ -1118,13 +1118,13 @@ void CollectionWatcher::SetRescanPaused(bool pause) {
void CollectionWatcher::IncrementalScanAsync() {
QMetaObject::invokeMethod(this, "IncrementalScanNow", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, &CollectionWatcher::IncrementalScanNow, Qt::QueuedConnection);
}
void CollectionWatcher::FullScanAsync() {
QMetaObject::invokeMethod(this, "FullScanNow", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, &CollectionWatcher::FullScanNow, Qt::QueuedConnection);
}