aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/genericprojectmanager/genericmakestep.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-05-17 15:42:38 +0200
committerEike Ziller <eike.ziller@qt.io>2018-05-22 13:45:27 +0000
commit981a98f34f81b9fa243e05d7c6da42ef4afd3c2c (patch)
tree686f2f6c108e5f1a64ff7c8f8493bacb107c86f5 /src/plugins/genericprojectmanager/genericmakestep.cpp
parent58bd043e2722e7670008fb180faf982294221d4c (diff)
Make step is always called "Make"
So provide it through the base class, also for the factories. Change-Id: Ie4a6113b785ec6c0ddde694ec0bcd11a26331c39 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/genericprojectmanager/genericmakestep.cpp')
-rw-r--r--src/plugins/genericprojectmanager/genericmakestep.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/genericprojectmanager/genericmakestep.cpp b/src/plugins/genericprojectmanager/genericmakestep.cpp
index 00edf3a1d4..62d7c1265e 100644
--- a/src/plugins/genericprojectmanager/genericmakestep.cpp
+++ b/src/plugins/genericprojectmanager/genericmakestep.cpp
@@ -38,14 +38,10 @@ namespace GenericProjectManager {
namespace Internal {
const char GENERIC_MS_ID[] = "GenericProjectManager.GenericMakeStep";
-const char GENERIC_MS_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("GenericProjectManager::Internal::GenericMakeStep",
- "Make");
GenericMakeStep::GenericMakeStep(BuildStepList *parent, const QString &buildTarget)
: MakeStep(parent, GENERIC_MS_ID, buildTarget, {"all", "clean"})
{
- setDefaultDisplayName(QCoreApplication::translate("GenericProjectManager::Internal::GenericMakeStep",
- GENERIC_MS_DISPLAY_NAME));
}
bool GenericMakeStep::init(QList<const BuildStep *> &earlierSteps)
@@ -99,8 +95,7 @@ GenericMakeAllStepFactory::GenericMakeAllStepFactory()
};
registerStep<Step>(GENERIC_MS_ID);
- setDisplayName(QCoreApplication::translate(
- "GenericProjectManager::Internal::GenericMakeStep", GENERIC_MS_DISPLAY_NAME));
+ setDisplayName(MakeStep::defaultDisplayName());
setSupportedProjectType(Constants::GENERICPROJECT_ID);
setSupportedStepLists({ProjectExplorer::Constants::BUILDSTEPS_BUILD,
ProjectExplorer::Constants::BUILDSTEPS_DEPLOY});
@@ -122,8 +117,7 @@ GenericMakeCleanStepFactory::GenericMakeCleanStepFactory()
};
registerStep<Step>(GENERIC_MS_ID);
- setDisplayName(QCoreApplication::translate(
- "GenericProjectManager::Internal::GenericMakeStep", GENERIC_MS_DISPLAY_NAME));
+ setDisplayName(MakeStep::defaultDisplayName());
setSupportedProjectType(Constants::GENERICPROJECT_ID);
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_CLEAN);
}