From c356a276ecffe6c9c47aaa92f1aa20c23210d10d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 30 Jan 2015 13:52:46 +0100 Subject: QbsProjectManager: Fix command-line representations. - All except the one for "qbs build" were incomplete, which is fixed now. - The new implementation is centralized, so maintenance will be simpler. - The command lines are also completely self-contained now, so they can be pasted as-is into a shell with no assumptions about the working directory etc. Change-Id: I2c684141bcdc5c6da0e1af60ce60278fc4dcd088 Reviewed-by: Jake Petroules --- src/plugins/qbsprojectmanager/qbscleanstep.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/plugins/qbsprojectmanager/qbscleanstep.cpp') diff --git a/src/plugins/qbsprojectmanager/qbscleanstep.cpp b/src/plugins/qbsprojectmanager/qbscleanstep.cpp index 5cc015c395..5b5e0c03a8 100644 --- a/src/plugins/qbsprojectmanager/qbscleanstep.cpp +++ b/src/plugins/qbsprojectmanager/qbscleanstep.cpp @@ -293,13 +293,7 @@ void QbsCleanStepConfigWidget::updateState() m_ui->dryRunCheckBox->setChecked(m_step->dryRun()); m_ui->keepGoingCheckBox->setChecked(m_step->keepGoing()); - QString command = QLatin1String("qbs clean "); - if (m_step->dryRun()) - command += QLatin1String("--dry-run "); - if (m_step->keepGoing()) - command += QLatin1String("--keep-going "); - if (m_step->cleanAll()) - command += QLatin1String(" --all-artifacts"); + QString command = QbsBuildConfiguration::equivalentCommandLine(m_step); m_ui->commandLineTextEdit->setPlainText(command); QString summary = tr("Qbs: %1").arg(command); -- cgit v1.2.1