summaryrefslogtreecommitdiff
path: root/src/plugins/qbsprojectmanager/qbscleanstep.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-01-30 13:52:46 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-01-30 16:32:50 +0000
commitc356a276ecffe6c9c47aaa92f1aa20c23210d10d (patch)
tree4900d2a730165d06e3143e8e3d11a37602011cff /src/plugins/qbsprojectmanager/qbscleanstep.cpp
parentaa39916c4101a3f98d81cd5c447c57b703e6dbcd (diff)
downloadqt-creator-c356a276ecffe6c9c47aaa92f1aa20c23210d10d.tar.gz
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 <jake.petroules@petroules.com>
Diffstat (limited to 'src/plugins/qbsprojectmanager/qbscleanstep.cpp')
-rw-r--r--src/plugins/qbsprojectmanager/qbscleanstep.cpp8
1 files changed, 1 insertions, 7 deletions
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("<b>Qbs:</b> %1").arg(command);