Use new connect syntax for QMetaObject::invokeMethod
This commit is contained in:
@@ -91,7 +91,7 @@ Database::~Database() {
|
||||
}
|
||||
|
||||
void Database::ExitAsync() {
|
||||
QMetaObject::invokeMethod(this, "Exit", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this, &Database::Exit, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void Database::Exit() {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ TagReaderClient::TagReaderClient(QObject *parent) : QObject(parent), worker_pool
|
||||
void TagReaderClient::Start() { worker_pool_->Start(); }
|
||||
|
||||
void TagReaderClient::ExitAsync() {
|
||||
QMetaObject::invokeMethod(this, "Exit", Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(this, &TagReaderClient::Exit, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void TagReaderClient::Exit() {
|
||||
|
||||
Reference in New Issue
Block a user