forked from qt-creator/qt-creator
Tasking::Async: Rename Async into AsyncTask
Rename Utils::AsyncTask into Utils::Async. Rename AsyncTaskBase into AsyncTask. Task-number: QTCREATORBUG-29102 Change-Id: I3aa24d84138c19922d4f61b1c9cf15bc8989f60e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -869,11 +869,11 @@ void SideBySideDiffEditorWidget::restoreState()
|
||||
|
||||
void SideBySideDiffEditorWidget::showDiff()
|
||||
{
|
||||
m_asyncTask.reset(new AsyncTask<SideBySideShowResults>());
|
||||
m_asyncTask.reset(new Async<SideBySideShowResults>());
|
||||
m_asyncTask->setFutureSynchronizer(ExtensionSystem::PluginManager::futureSynchronizer());
|
||||
m_controller.setBusyShowing(true);
|
||||
|
||||
connect(m_asyncTask.get(), &AsyncTaskBase::done, this, [this] {
|
||||
connect(m_asyncTask.get(), &AsyncBase::done, this, [this] {
|
||||
if (m_asyncTask->isCanceled() || !m_asyncTask->isResultAvailable()) {
|
||||
for (SideDiffEditorWidget *editor : m_editor)
|
||||
editor->clearAll(Tr::tr("Retrieving data failed."));
|
||||
|
||||
Reference in New Issue
Block a user