diff --git a/src/plugins/qbsprojectmanager/qbscleanstep.cpp b/src/plugins/qbsprojectmanager/qbscleanstep.cpp index b10a4f84876..54560bf36ef 100644 --- a/src/plugins/qbsprojectmanager/qbscleanstep.cpp +++ b/src/plugins/qbsprojectmanager/qbscleanstep.cpp @@ -264,7 +264,6 @@ QbsCleanStepConfigWidget::QbsCleanStepConfigWidget(QbsCleanStep *step) : this, SLOT(changeCleanAll(bool))); connect(m_ui->dryRunCheckBox, SIGNAL(toggled(bool)), this, SLOT(changeDryRun(bool))); connect(m_ui->keepGoingCheckBox, SIGNAL(toggled(bool)), this, SLOT(changeKeepGoing(bool))); - connect(m_ui->jobSpinBox, SIGNAL(valueChanged(int)), this, SLOT(changeJobCount(int))); updateState(); } @@ -284,17 +283,12 @@ void QbsCleanStepConfigWidget::updateState() m_ui->cleanAllCheckBox->setChecked(m_step->cleanAll()); m_ui->dryRunCheckBox->setChecked(m_step->dryRun()); m_ui->keepGoingCheckBox->setChecked(m_step->keepGoing()); - m_ui->jobSpinBox->setValue(m_step->maxJobs()); - - qbs::BuildOptions defaultOptions; QString command = QLatin1String("qbs clean "); if (m_step->dryRun()) command += QLatin1String("--dry-run "); if (m_step->keepGoing()) command += QLatin1String("--keep-going "); - if (m_step->maxJobs() != defaultOptions.maxJobCount) - command += QString::fromLatin1("--jobs %1 ").arg(m_step->maxJobs()); if (m_step->cleanAll()) command += QLatin1String(" --all-artifacts"); diff --git a/src/plugins/qbsprojectmanager/qbscleanstepconfigwidget.ui b/src/plugins/qbsprojectmanager/qbscleanstepconfigwidget.ui index 355f9b883d8..ed99479ea34 100644 --- a/src/plugins/qbsprojectmanager/qbscleanstepconfigwidget.ui +++ b/src/plugins/qbsprojectmanager/qbscleanstepconfigwidget.ui @@ -6,11 +6,23 @@ 0 0 - 440 - 59 + 311 + 20 + + 0 + + + 0 + + + 0 + + + 0 + @@ -19,43 +31,17 @@ - - - QFrame::StyledPanel + + + Dry run - - QFrame::Plain + + + + + + Keep Going - - - - - Dry run - - - - - - - Keep Going - - - - - - - - - - - - jobs - - - - - -