Add functionality to show progress for the application in task bar/dock.

Move the API to the progress manager.
Added a first Mac implementation, other
platforms are pending.
This commit is contained in:
con
2009-11-26 15:51:10 +01:00
parent 4688634f78
commit 90c03d3209
21 changed files with 311 additions and 73 deletions

View File

@@ -857,8 +857,7 @@ void CppModelManager::updateProjectInfo(const ProjectInfo &pinfo)
if (pinfo.includePaths.size() > 1) {
m_core->progressManager()->addTask(result, tr("Scanning"),
CppTools::Constants::TASK_INDEX,
Core::ProgressManager::CloseOnSuccess);
CppTools::Constants::TASK_INDEX);
}
}
}
@@ -899,8 +898,7 @@ QFuture<void> CppModelManager::refreshSourceFiles(const QStringList &sourceFiles
if (sourceFiles.count() > 1) {
m_core->progressManager()->addTask(result, tr("Indexing"),
CppTools::Constants::TASK_INDEX,
Core::ProgressManager::CloseOnSuccess);
CppTools::Constants::TASK_INDEX);
}
return result;
}