ProgressManager: Unify style of progress manager task descriptions

Change-Id: I6826e66f00f47997c644c24d1b20f4a1ea53a8a1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
This commit is contained in:
Tobias Hunger
2014-06-24 12:16:16 +02:00
parent 8dde04aa22
commit 36d8ec4f47
3 changed files with 5 additions and 4 deletions

View File

@@ -184,7 +184,7 @@ void PchManager::updatePchInfo(ClangProjectSettings *cps,
QFuture<void> future = QtConcurrent::run(updateFunction,
UpdateParams(customPchFile, projectParts));
m_pchGenerationWatcher.setFuture(future);
Core::ProgressManager::addTask(future, tr("Precompiling..."), "Key.Tmp.Precompiling");
Core::ProgressManager::addTask(future, tr("Precompiling"), "Key.Tmp.Precompiling");
}
namespace {

View File

@@ -198,7 +198,7 @@ void SearchWidget::indexingStarted()
m_progress = new QFutureInterface<void>();
Core::ProgressManager::addTask(m_progress->future(), tr("Indexing Documentation"), "Help.Indexer");
m_progress->setProgressRange(0, 2);
m_progress->setProgressValueAndText(1, tr("Indexing Documentation..."));
m_progress->setProgressValueAndText(1, tr("Indexing Documentation"));
m_progress->reportStarted();
m_watcher.setFuture(m_progress->future());

View File

@@ -207,8 +207,9 @@ void UpdateInfoPlugin::parseUpdates()
return;
// add the finished task to the progress manager
d->updateInfoProgress = ProgressManager::addTask(d->lastCheckUpdateInfoTask, tr("Updates "
"available"), "Update.GetInfo", ProgressManager::KeepOnFinish);
d->updateInfoProgress
= ProgressManager::addTask(d->lastCheckUpdateInfoTask, tr("Updates Available"),
"Update.GetInfo", ProgressManager::KeepOnFinish);
d->updateInfoProgress->setKeepOnFinish(FutureProgress::KeepOnFinish);
d->progressUpdateInfoButton = new UpdateInfoButton();