forked from qt-creator/qt-creator
Qt4BaseTargetFactory: Expose list of generic 'features' for a target
Replace the isMobileTarget, supportsShadowBuilds methods by a generic targetFeatures method which exposes features as a set of strings. Change-Id: I2ac99ff5a82280316071efaa140cd7ea35b21374 Reviewed-on: http://codereview.qt.nokia.com/692 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -244,7 +244,11 @@ int BaseQt4ProjectWizardDialog::addTargetSetupPage(QSet<QString> targets, bool m
|
||||
m_targets = targets;
|
||||
resize(900, 450);
|
||||
|
||||
m_targetSetupPage->setPreferMobile(mobile);
|
||||
if (mobile) {
|
||||
m_targetSetupPage->setPreferredFeatures(QSet<QString>() << Constants::MOBILE_TARGETFEATURE_ID);
|
||||
} else {
|
||||
m_targetSetupPage->setPreferredFeatures(QSet<QString>() << Constants::DESKTOP_TARGETFEATURE_ID);
|
||||
}
|
||||
|
||||
if (id >= 0)
|
||||
setPage(id, m_targetSetupPage);
|
||||
|
||||
Reference in New Issue
Block a user