Use std::bind in QtConcurrent::run() to fix compile with Qt 6

This commit is contained in:
Jonas Kvinge
2020-07-19 22:43:58 +02:00
parent ff73dd2183
commit eb270df835
6 changed files with 10 additions and 7 deletions

View File

@@ -859,7 +859,7 @@ void CollectionModel::LazyPopulate(CollectionItem *parent, const bool signal) {
}
void CollectionModel::ResetAsync() {
QFuture<CollectionModel::QueryResult> future = QtConcurrent::run(this, &CollectionModel::RunQuery, root_);
QFuture<CollectionModel::QueryResult> future = QtConcurrent::run(std::bind(&CollectionModel::RunQuery, this, root_));
NewClosure(future, this, SLOT(ResetAsyncQueryFinished(QFuture<CollectionModel::QueryResult>)), future);
}