various: ensure qt 5 compatibility
This commit is contained in:
@@ -56,7 +56,13 @@ void TaskDialog::showEvent(QShowEvent *e)
|
||||
this, &TaskDialog::TaskFinished, Qt::QueuedConnection);
|
||||
|
||||
// Run task in another thread with QtConcurrent
|
||||
task_watcher->setFuture(QtConcurrent::run(&Task::Start, task_));
|
||||
task_watcher->setFuture(
|
||||
#if QT_VERSION_MAJOR >= 6
|
||||
QtConcurrent::run(&Task::Start, task_)
|
||||
#else
|
||||
QtConcurrent::run(task_, &Task::Start)
|
||||
#endif
|
||||
);
|
||||
|
||||
already_shown_ = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user