summaryrefslogtreecommitdiff
path: root/src/plugins/ios/iosrunconfiguration.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-03-14 14:40:47 +0100
committerhjk <hjk@qt.io>2018-03-16 09:55:03 +0000
commite20d6200436da24bfed43f0738c94e4bc3ce751b (patch)
treed9c451c7c803025983a79b9fcfd10c0b9af5115c /src/plugins/ios/iosrunconfiguration.h
parente3918b563f87db838ca279ad63a460d992fc03b4 (diff)
downloadqt-creator-e20d6200436da24bfed43f0738c94e4bc3ce751b.tar.gz
ProjectExplorer: Let RunConfiguration declare what nodes it belongs to
This feature in question is the availability of the "Run" button in the context menu of certain project nodes in the project tree to run something presumably related to/build from that (sub)project. Previously, the decision was made for certain qmake based projects (those targeting Desktop, iOS and VxWorks) by some indirection through the corresponding RunConfigurationFactories. The patch lets the RunConfigurations decide themselves directly and removes the indirection, potentially opening the feature for other qmake based RCs, as well as other combinations (e.g. PythonRunConfiguration could be associated with its .py file, without the need to have a dummy project) Change-Id: Ic489bd1dfa25fcd9102ffa4fa30125565dd2e40e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/ios/iosrunconfiguration.h')
-rw-r--r--src/plugins/ios/iosrunconfiguration.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/ios/iosrunconfiguration.h b/src/plugins/ios/iosrunconfiguration.h
index 6e40b66573..4bdf92f046 100644
--- a/src/plugins/ios/iosrunconfiguration.h
+++ b/src/plugins/ios/iosrunconfiguration.h
@@ -74,6 +74,7 @@ private:
friend class IosRunConfigurationWidget;
void updateDisplayNames();
void updateEnabledState() final;
+ bool canRunForNode(const ProjectExplorer::Node *node) const final;
Utils::FileName m_profilePath;
IosDeviceType m_deviceType;