summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2012-01-18 13:50:14 +0100
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2012-01-18 15:13:52 +0100
commit17a7bd17d08489453d6a679aab711a946e023ff3 (patch)
tree8191d6931163d2630408d6f9087a2261836e0478 /src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
parent31d5ec9cab213fb65b970bfa7c8cb16128d282c8 (diff)
downloadqt-creator-17a7bd17d08489453d6a679aab711a946e023ff3.tar.gz
Wizards: allows filtering of wizards based on Qt version
Every wizard now implements requiredFeatures() to define a feature set. If the feature set is not satisfied by the available Qt Versions, the wizard is not shown in the create file/project dialog. Every Qt version can define the provided feature set in availableFeatures() defined in BaseQtVersion. Change-Id: Ie9e2c210d19187b2296451948c36d274f2096623 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp')
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp b/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
index 7ca639f2fb..da222d03f3 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
@@ -64,6 +64,11 @@ QmlProjectApplicationWizard::QmlProjectApplicationWizard()
QmlProjectApplicationWizard::~QmlProjectApplicationWizard()
{ }
+Core::FeatureSet QmlProjectApplicationWizard::requiredFeatures() const
+{
+ return Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK);
+}
+
Core::BaseFileWizardParameters QmlProjectApplicationWizard::parameters()
{
Core::BaseFileWizardParameters parameters(ProjectWizard);