forked from qt-creator/qt-creator
ProjectExplorer: Pass Id to BuildStep constructor
Allows to use constants in fewer places, similar to what e.g. RunConfiguration does. Change-Id: I9d049128206c4acf0ce14b06b66d6c090a7c5242 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -76,8 +76,8 @@ static bool isCurrentExecutableTarget(const QString &target)
|
||||
return target == ADD_RUNCONFIGURATION_TEXT;
|
||||
}
|
||||
|
||||
CMakeBuildStep::CMakeBuildStep(BuildStepList *bsl) :
|
||||
AbstractProcessStep(bsl, Constants::CMAKE_BUILD_STEP_ID)
|
||||
CMakeBuildStep::CMakeBuildStep(BuildStepList *bsl, Core::Id id) :
|
||||
AbstractProcessStep(bsl, id)
|
||||
{
|
||||
m_percentProgress = QRegExp("^\\[\\s*(\\d*)%\\]");
|
||||
m_ninjaProgress = QRegExp("^\\[\\s*(\\d*)/\\s*(\\d*)");
|
||||
|
||||
Reference in New Issue
Block a user