Commit 98917598 authored by hjk's avatar hjk
Browse files

ProjectManager: Use Core::Id for progress types



Change-Id: I72993fda50ad70ad2d7c2f449923ac6e34b9e737
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 1f340d44
......@@ -184,7 +184,7 @@ void UpdateInfoPlugin::reactOnUpdaterOutput()
} else {
//added the current almost finished task to the progressmanager
d->updateInfoProgress = ProgressManager::addTask(
d->lastCheckUpdateInfoTask, tr("Update"), QLatin1String("Update.GetInfo"), ProgressManager::KeepOnFinish);
d->lastCheckUpdateInfoTask, tr("Update"), "Update.GetInfo", ProgressManager::KeepOnFinish);
d->updateInfoProgress->setKeepOnFinish(FutureProgress::KeepOnFinish);
......
......@@ -86,7 +86,7 @@ bool ValgrindRunControl::startEngine()
emit starting(this);
FutureProgress *fp = ProgressManager::addTask(m_progress->future(),
progressTitle(), QLatin1String("valgrind"));
progressTitle(), "valgrind");
fp->setKeepOnFinish(FutureProgress::HideOnFinish);
m_progress->setProgressRange(0, progressMaximum);
m_progress->reportStarted();
......
......@@ -268,7 +268,7 @@ bool CleanDialog::promptToDelete()
QFuture<void> task = QtConcurrent::run(cleanTask, &Internal::CleanFilesTask::run);
const QString taskName = tr("Cleaning %1").
arg(QDir::toNativeSeparators(d->m_workingDirectory));
Core::ProgressManager::addTask(task, taskName, QLatin1String("VcsBase.cleanRepository"));
Core::ProgressManager::addTask(task, taskName, "VcsBase.cleanRepository");
return true;
}
......
......@@ -213,7 +213,8 @@ void Command::execute()
binary = binary.replace(0, 1, binary[0].toUpper()); // Upper the first letter
const QString taskName = binary + QLatin1Char(' ') + d->m_jobs.front().arguments.at(0);
Core::ProgressManager::addTask(task, taskName, binary + QLatin1String(".action"));
Core::ProgressManager::addTask(task, taskName,
Core::Id::fromString(binary + QLatin1String(".action")));
}
void Command::terminate()
......
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