Commit b4e72c2e authored by Eike Ziller's avatar Eike Ziller

ProjectExplorer: Use runAsync

Change-Id: Ie8e188f3d2a328f24d86bde4d4d7ad01c709dc24
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 8b4f14a8
......@@ -49,7 +49,7 @@
#include <QFutureWatcher>
#include <QElapsedTimer>
#include <utils/QtConcurrentTools>
#include <utils/runextensions.h>
#include <QApplication>
......@@ -460,7 +460,7 @@ void BuildManager::nextStep()
d->m_watcher.setFuture(d->m_futureInterfaceForAysnc.future());
d->m_currentBuildStep->run(d->m_futureInterfaceForAysnc);
} else {
d->m_watcher.setFuture(QtConcurrent::run(&BuildStep::run, d->m_currentBuildStep));
d->m_watcher.setFuture(Utils::runAsync(&BuildStep::run, d->m_currentBuildStep));
}
} else {
d->m_running = false;
......
......@@ -49,7 +49,7 @@
\c init() is called in the GUI thread and can be used to query the
project for any information you need.
\c run() is run via QtConcurrent in a separate thread. If you need an
\c run() is run via Utils::runAsync in a separate thread. If you need an
event loop, you need to create it yourself.
*/
......
......@@ -29,7 +29,7 @@
#include <coreplugin/fileiconprovider.h>
#include <coreplugin/icore.h>
#include <utils/QtConcurrentTools>
#include <utils/runextensions.h>
#include <utils/algorithm.h>
#include <QDialogButtonBox>
......@@ -82,7 +82,7 @@ void SelectableFilesModel::startParsing(const Utils::FileName &baseDir)
m_rootForFuture->fullPath = baseDir;
m_rootForFuture->isDir = true;
m_watcher.setFuture(QtConcurrent::run(&SelectableFilesModel::run, this));
m_watcher.setFuture(Utils::runAsync(&SelectableFilesModel::run, this));
}
void SelectableFilesModel::run(QFutureInterface<void> &fi)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment