aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport/qtkitinformation.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2014-07-29 15:15:27 +0200
committerTobias Hunger <tobias.hunger@digia.com>2014-07-30 13:49:59 +0200
commitb2ea6e1b9e4cd15e3ac1255b9a67ed033eb70f7c (patch)
tree6a57783b449188f85d713e6df4be46d6919d8417 /src/plugins/qtsupport/qtkitinformation.h
parent281161c24276a52a4e120f2d43ad578895a1a04a (diff)
FeatureProvider: Move features into Kits
Make available features and platforms methods on kits (implemented via the KitInformation). Add convenience methods to KitManager to collect all that. Remove QtFeatureProvider and implement KitFeatureProvider instead. The idea of this patch is to make it easier to find which kits are applicable to which wizard: I should now be able to match the wizard features against a kit and have a good set of kits to choose from. Change-Id: Ie5be0213f142cfdf4417ac55bd6cbb056265a531 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/qtsupport/qtkitinformation.h')
-rw-r--r--src/plugins/qtsupport/qtkitinformation.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/qtkitinformation.h b/src/plugins/qtsupport/qtkitinformation.h
index c9db7fedf19..9b52c3459e7 100644
--- a/src/plugins/qtsupport/qtkitinformation.h
+++ b/src/plugins/qtsupport/qtkitinformation.h
@@ -66,11 +66,15 @@ public:
static BaseQtVersion *qtVersion(const ProjectExplorer::Kit *k);
static void setQtVersion(ProjectExplorer::Kit *k, const BaseQtVersion *v);
- static ProjectExplorer::KitMatcher platformMatcher(const QString &platform);
+ static ProjectExplorer::KitMatcher platformMatcher(const QString &availablePlatforms);
static ProjectExplorer::KitMatcher qtVersionMatcher(const Core::FeatureSet &required = Core::FeatureSet(),
const QtVersionNumber &min = QtVersionNumber(0, 0, 0),
const QtVersionNumber &max = QtVersionNumber(INT_MAX, INT_MAX, INT_MAX));
+ QSet<QString> availablePlatforms(const ProjectExplorer::Kit *k) const;
+ QString displayNameForPlatform(const ProjectExplorer::Kit *k, const QString &platform) const;
+ Core::FeatureSet availableFeatures(const ProjectExplorer::Kit *k) const;
+
private slots:
void qtVersionsChanged(const QList<int> &addedIds,
const QList<int> &removedIds,