Use new connect syntax for QMetaObject::invokeMethod
This commit is contained in:
@@ -89,7 +89,7 @@ void CollectionBackend::Close() {
|
||||
}
|
||||
|
||||
void CollectionBackend::ExitAsync() {
|
||||
QMetaObject::invokeMethod(this, "Exit", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this, &CollectionBackend::Exit, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void CollectionBackend::Exit() {
|
||||
@@ -115,19 +115,19 @@ void CollectionBackend::ReportErrors(const CollectionQuery &query) {
|
||||
}
|
||||
|
||||
void CollectionBackend::LoadDirectoriesAsync() {
|
||||
QMetaObject::invokeMethod(this, "LoadDirectories", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this, &CollectionBackend::LoadDirectories, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void CollectionBackend::UpdateTotalSongCountAsync() {
|
||||
QMetaObject::invokeMethod(this, "UpdateTotalSongCount", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this, &CollectionBackend::UpdateTotalSongCount, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void CollectionBackend::UpdateTotalArtistCountAsync() {
|
||||
QMetaObject::invokeMethod(this, "UpdateTotalArtistCount", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this, &CollectionBackend::UpdateTotalArtistCount, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void CollectionBackend::UpdateTotalAlbumCountAsync() {
|
||||
QMetaObject::invokeMethod(this, "UpdateTotalAlbumCount", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this, &CollectionBackend::UpdateTotalAlbumCount, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void CollectionBackend::IncrementPlayCountAsync(const int id) {
|
||||
@@ -1825,7 +1825,7 @@ bool CollectionBackend::ResetPlayStatistics(const QStringList &id_str_list) {
|
||||
|
||||
void CollectionBackend::DeleteAllAsync() {
|
||||
|
||||
QMetaObject::invokeMethod(this, "DeleteAll", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this, &CollectionBackend::DeleteAll, Qt::QueuedConnection);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user