Commit dc4822d1 authored by Daniel Teske's avatar Daniel Teske Committed by Kai Koehne
Browse files

Qt Quick Wizards: Prefer mobile to desktop kits



This also affects the Html5Wizard. Compare to code in
BaseQt4ProjectWizardDialog::addTargetSetupPage

Note: The selected platform refers to the "filter" combobox in the top
right of the new project wizard.

Change-Id: I0d7d5162a2693ea0ced03f928fa7c4d67a4ac164
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 67e91ce3
......@@ -63,7 +63,14 @@ AbstractMobileAppWizardDialog::AbstractMobileAppWizardDialog(QWidget *parent,
{
if (!parameters.extraValues().contains(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS))) {
m_targetsPage = new TargetSetupPage;
m_targetsPage->setPreferredKitMatcher(new QtSupport::QtPlatformKitMatcher(selectedPlatform()));
QString platform = selectedPlatform();
if (platform.isEmpty()) {
m_targetsPage->setPreferredKitMatcher(
new QtSupport::QtVersionKitMatcher(
Core::FeatureSet( QtSupport::Constants::FEATURE_MOBILE)));
} else {
m_targetsPage->setPreferredKitMatcher(new QtSupport::QtPlatformKitMatcher(platform));
}
m_targetsPage->setRequiredKitMatcher(new QtSupport::QtVersionKitMatcher(requiredFeatures(),
minimumQtVersionNumber,
maximumQtVersionNumber));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment