QSet<QString> Qt4DesktopTargetFactory::targetFeatures(const QString & /*id*/) const
{
- return QSet<QString>() << Constants::DESKTOP_TARGETFEATURE_ID
- << Constants::SHADOWBUILD_TARGETFEATURE_ID;
+ QSet<QString> features;
+ features << Constants::DESKTOP_TARGETFEATURE_ID;
+ features << Constants::SHADOWBUILD_TARGETFEATURE_ID;
+ // how to check check whether they component set is really installed?
+ features << Constants::QTQUICKCOMPONENTS_SYMBIAN_TARGETFEATURE_ID;
+ return features;
}
ProjectExplorer::Target *Qt4DesktopTargetFactory::create(ProjectExplorer::Project *parent, const QString &id, const QList<BuildConfigurationInfo> &infos)
QSet<QString> Qt4SimulatorTargetFactory::targetFeatures(const QString & /*id*/) const
{
- return QSet<QString>() << Constants::MOBILE_TARGETFEATURE_ID
- << Constants::SHADOWBUILD_TARGETFEATURE_ID;
+ QSet<QString> features;
+
+ features << Constants::MOBILE_TARGETFEATURE_ID;
+ features << Constants::SHADOWBUILD_TARGETFEATURE_ID;
+ // how to check check whether the component set is really installed?
+ features << Constants::QTQUICKCOMPONENTS_SYMBIAN_TARGETFEATURE_ID;
+ return features;
}
ProjectExplorer::Target *Qt4SimulatorTargetFactory::create(ProjectExplorer::Project *parent, const QString &id)
QSet<QString> Qt4SymbianTargetFactory::targetFeatures(const QString & /*id*/) const
{
- return QSet<QString>() << Constants::MOBILE_TARGETFEATURE_ID;
+ QSet<QString> features;
+ features << Constants::MOBILE_TARGETFEATURE_ID;
+ // ideally we should check whether they're really installed
+ features << Constants::QTQUICKCOMPONENTS_SYMBIAN_TARGETFEATURE_ID;
+ return features;
}
ProjectExplorer::Target *Qt4SymbianTargetFactory::create(ProjectExplorer::Project *parent, const QString &id)
const char * const MOBILE_TARGETFEATURE_ID = "Qt4ProjectManager.TargetFeature.Mobile";
const char * const DESKTOP_TARGETFEATURE_ID = "Qt4ProjectManager.TargetFeature.Desktop";
const char * const SHADOWBUILD_TARGETFEATURE_ID = "Qt4ProjectManager.TargetFeature.ShadowBuild";
+const char * const QTQUICKCOMPONENTS_SYMBIAN_TARGETFEATURE_ID
+ = "Qt4ProjectManager.TargetFeature.QtQuickComponentsSymbian";
+
// Tool chains:
const char * const GCCE_TOOLCHAIN_ID = "Qt4ProjectManager.ToolChain.GCCE";
if (m_componentOptionsPage->componentSet() == QtQuickApp::Symbian10Components) {
setIgnoreGenericOptionsPage(true);
targetsPage()->setMinimumQtVersion(QtSupport::QtVersionNumber(4, 7, 3));
+ QSet<QString> requiredFeatures;
+ requiredFeatures << Constants::QTQUICKCOMPONENTS_SYMBIAN_TARGETFEATURE_ID;
+ targetsPage()->setRequiredFeatures(requiredFeatures);
} else if (m_componentOptionsPage->componentSet() == QtQuickApp::QtQuick11Components) {
targetsPage()->setMinimumQtVersion(QtSupport::QtVersionNumber(4, 7, 4));
}