Add option to query QtVersion for mobile support

This commit is contained in:
Tobias Hunger
2010-03-30 15:08:51 +02:00
parent 289714b7dc
commit f11a25801a
2 changed files with 8 additions and 0 deletions

View File

@@ -1117,6 +1117,13 @@ QSet<QString> QtVersion::supportedTargetIds() const
return m_targetIds;
}
bool QtVersion::supportsMobileTarget() const
{
return supportsTargetId(Constants::S60_DEVICE_TARGET_ID) ||
supportsTargetId(Constants::S60_EMULATOR_TARGET_ID) ||
supportsTargetId(Constants::MAEMO_DEVICE_TARGET_ID);
}
QList<QSharedPointer<ProjectExplorer::ToolChain> > QtVersion::toolChains() const
{
updateToolChainAndMkspec();

View File

@@ -72,6 +72,7 @@ public:
bool supportsTargetId(const QString &id) const;
QSet<QString> supportedTargetIds() const;
bool supportsMobileTarget() const;
QList<ProjectExplorer::ToolChain::ToolChainType> possibleToolChainTypes() const;
ProjectExplorer::ToolChain *toolChain(ProjectExplorer::ToolChain::ToolChainType type) const;