forked from qt-creator/qt-creator
Qbs: Pass related info directly to command line creation function
Saves a few casts and otherwise unneeded accessors. Change-Id: I7a6ff1e8348a24690f35e69d300463a6c5c18867 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -67,8 +67,12 @@ QbsCleanStep::QbsCleanStep(BuildStepList *bsl, Core::Id id)
|
||||
effectiveCommandAspect->setLabelText(tr("Equivalent command line:"));
|
||||
|
||||
setSummaryUpdater([this, effectiveCommandAspect] {
|
||||
QbsBuildStepData data;
|
||||
data.command = "clean";
|
||||
data.dryRun = m_dryRunAspect->value();
|
||||
data.keepGoing = m_keepGoingAspect->value();
|
||||
QString command = static_cast<QbsBuildConfiguration *>(buildConfiguration())
|
||||
->equivalentCommandLine(this);
|
||||
->equivalentCommandLine(data);
|
||||
effectiveCommandAspect->setValue(command);
|
||||
return tr("<b>Qbs:</b> %1").arg(command);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user