forked from qt-creator/qt-creator
Consolidate build/deploystep default display name handling
Use the display name from the factory as default, override if needed. Change-Id: I03519c998432fea4120b0de8b2fc2686644635f2 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -62,9 +62,6 @@ private:
|
||||
NimCompilerCleanStep::NimCompilerCleanStep(BuildStepList *parentList, Utils::Id id)
|
||||
: BuildStep(parentList, id)
|
||||
{
|
||||
setDefaultDisplayName(tr("Nim Clean Step"));
|
||||
setDisplayName(tr("Nim Clean Step"));
|
||||
|
||||
auto workingDirectory = addAspect<StringAspect>();
|
||||
workingDirectory->setLabelText(tr("Working directory:"));
|
||||
workingDirectory->setDisplayStyle(StringAspect::LineEditDisplay);
|
||||
@@ -140,7 +137,7 @@ NimCompilerCleanStepFactory::NimCompilerCleanStepFactory()
|
||||
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_CLEAN);
|
||||
setSupportedConfiguration(Constants::C_NIMBUILDCONFIGURATION_ID);
|
||||
setRepeatable(false);
|
||||
setDisplayName(NimCompilerCleanStep::tr("Nim Compiler Clean Step"));
|
||||
setDisplayName(NimCompilerCleanStep::tr("Nim Clean Step"));
|
||||
}
|
||||
|
||||
} // Nim
|
||||
|
||||
Reference in New Issue
Block a user