aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-12-12 09:17:21 +0100
committerhjk <hjk@qt.io>2018-01-03 14:04:00 +0000
commit32f2169f7750f50c8cb8820d315881a7da472ed7 (patch)
tree199d035dff1b5abb3e176f078c962802dd714d37 /src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
parent63ed6321fbe0c2d5b9d09493246c4b82a429057c (diff)
ProjectExplorer: Add a IRunConfigurationFactory::addFixedBuildTarget()
To be used for "special" build targets (Custom executables etc) that do not depend on the project. This reduces user side boiler plate in a couple of cases and is a bit clearer than the magic {QString()} result anyway. Change-Id: I105b6ab952981143b2abf9b218fed30cee80b648 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/customexecutablerunconfiguration.cpp')
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
index 3e732af2e4..b76cd099b6 100644
--- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
+++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
@@ -306,16 +306,7 @@ CustomExecutableRunConfigurationFactory::CustomExecutableRunConfigurationFactory
{
setObjectName("CustomExecutableRunConfigurationFactory");
registerRunConfiguration<CustomExecutableRunConfiguration>(CUSTOM_EXECUTABLE_ID);
-}
-
-QList<QString> CustomExecutableRunConfigurationFactory::availableBuildTargets(Target *, CreationMode) const
-{
- return {QString()};
-}
-
-QString CustomExecutableRunConfigurationFactory::displayNameForBuildTarget(const QString &) const
-{
- return tr("Custom Executable");
+ addFixedBuildTarget(tr("Custom Executable"));
}
} // namespace ProjectExplorer