forked from qt-creator/qt-creator
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:
@@ -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 {
|
||||
|
@@ -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());
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user