Commit cc76f6ea authored by Thomas Hartmann's avatar Thomas Hartmann

Wizards: removing feature GENERIC_CPP_ENTRY_POINT

We want finer grained features

Change-Id: Id65d58409a6960aa9d132cb29592b921ee6bcfdf
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent f916d38d
......@@ -37,7 +37,7 @@ the project file goes last.
The "class" and "firstpage" attributes specify that it is a Qt 4 wizard and
leave room for the Qt 4 target page.
-->
<wizard version="1" kind="project" firstpage="10" id="S.Plain C (CMake)" category="I.Projects" featuresRequired="QtSupport.Wizards.FeatureGenericCppEntryPoint" platformIndependent="true">
<wizard version="1" kind="project" firstpage="10" id="S.Plain C (CMake)" category="I.Projects" platformIndependent="true">
<icon>console.png</icon>
<description>Creates a plain C project using CMake, not using the Qt library.</description>
<displayname>Plain C Project (CMake Build)</displayname>;
......
......@@ -40,7 +40,7 @@ leave room for the Qt 4 target page.
<wizard version="1" kind="project"
class="qt4project" firstpage="10"
id="R.Plain C" category="H.QtProjects"
featuresRequired="QtSupport.Wizards.FeatureGenericCppEntryPoint">
featuresRequired="QtSupport.Wizards.FeatureQt">
<icon>console.png</icon>
<description>Creates a plain C project using qmake, not using the Qt library.</description>
<displayname>Plain C Project</displayname>;
......
......@@ -37,7 +37,7 @@ the project file goes last.
The "class" and "firstpage" attributes specify that it is a Qt 4 wizard and
leave room for the Qt 4 target page.
-->
<wizard version="1" kind="project" firstpage="10" id="S.Plain C++ (CMake)" category="I.Projects" featuresRequired="QtSupport.Wizards.FeatureGenericCppEntryPoint" platformIndependent="true">
<wizard version="1" kind="project" firstpage="10" id="S.Plain C++ (CMake)" category="I.Projects" platformIndependent="true">
<icon>console.png</icon>
<description>Creates a plain C++ project using CMake, not using the Qt library.</description>
<displayname>Plain C++ Project (CMake Build)</displayname>;
......
......@@ -40,7 +40,7 @@ leave room for the Qt 4 target page.
<wizard version="1" kind="project"
class="qt4project" firstpage="10"
id="R.Plain C++" category="H.QtProjects"
featuresRequired="QtSupport.Wizards.FeatureGenericCppEntryPoint">
featuresRequired="QtSupport.Wizards.FeatureQt">
<icon>console.png</icon>
<description>Creates a plain C++ project using qmake, not using the Qt library.</description>
<displayname>Plain C++ Project</displayname>;
......
......@@ -40,7 +40,7 @@ leave room for the Qt 4 target page.
<wizard version="1" kind="project"
class="qt4project" firstpage="10"
id="R.QtCreatorPlugin" category="G.Libraries"
featuresRequired="QtSupport.Wizards.FeatureGenericCppEntryPoint,QtSupport.Wizards.FeatureQt,QtSupport.Wizards.FeatureDesktop">
featuresRequired="QtSupport.Wizards.FeatureQt,QtSupport.Wizards.FeatureDesktop">
<icon>qtcreator_logo_24.png</icon>
<description>Creates a custom Qt Creator plugin.</description>
<displayname>Qt Creator Plugin</displayname>;
......
......@@ -109,7 +109,7 @@ Core::GeneratedFiles
Core::FeatureSet ConsoleAppWizard::requiredFeatures() const
{
return Core::Feature(QtSupport::Constants::FEATURE_GENERIC_CPP_ENTRY_POINT);
return Core::Feature(QtSupport::Constants::FEATURE_QT_CONSOLE);
}
} // namespace Internal
......
......@@ -98,7 +98,7 @@ Html5AppWizard::~Html5AppWizard()
Core::FeatureSet Html5AppWizard::requiredFeatures() const
{
return Core::Feature(QtSupport::Constants::FEATURE_GENERIC_CPP_ENTRY_POINT);
return Core::Feature(QtSupport::Constants::FEATURE_QT_WEBKIT);
}
Core::BaseFileWizardParameters Html5AppWizard::parameters()
......
......@@ -95,8 +95,7 @@ MobileAppWizard::~MobileAppWizard()
Core::FeatureSet MobileAppWizard::requiredFeatures() const
{
return Core::Feature(QtSupport::Constants::FEATURE_GENERIC_CPP_ENTRY_POINT)
| Core::FeatureSet(QtSupport::Constants::FEATURE_MOBILE)
return Core::FeatureSet(QtSupport::Constants::FEATURE_MOBILE)
| Core::Feature(QtSupport::Constants::FEATURE_QWIDGETS);
}
......
......@@ -126,9 +126,7 @@ QtQuickAppWizard::~QtQuickAppWizard()
Core::FeatureSet QtQuickAppWizard::requiredFeatures() const
{
return Core::Feature(QtSupport::Constants::FEATURE_GENERIC_CPP_ENTRY_POINT) |
Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK);
return Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK);
}
Core::BaseFileWizardParameters QtQuickAppWizard::parameters()
......
......@@ -188,7 +188,7 @@ Core::GeneratedFiles TestWizard::generateFiles(const QWizard *w, QString *errorM
Core::FeatureSet TestWizard::requiredFeatures() const
{
return Core::Feature(QtSupport::Constants::FEATURE_GENERIC_CPP_ENTRY_POINT) |
return Core::Feature(QtSupport::Constants::FEATURE_QT_CONSOLE) |
Core::Feature(QtSupport::Constants::FEATURE_QT);
}
......
......@@ -255,8 +255,7 @@ QString BaseQtVersion::defaultDisplayName(const QString &versionString, const Ut
Core::FeatureSet BaseQtVersion::availableFeatures() const
{
Core::FeatureSet features = Core::FeatureSet(QtSupport::Constants::FEATURE_GENERIC_CPP_ENTRY_POINT) |
Core::FeatureSet(QtSupport::Constants::FEATURE_QWIDGETS)
Core::FeatureSet features = Core::FeatureSet(QtSupport::Constants::FEATURE_QWIDGETS)
| Core::FeatureSet(QtSupport::Constants::FEATURE_QT)
| Core::FeatureSet(QtSupport::Constants::FEATURE_QT_WEBKIT)
| Core::FeatureSet(QtSupport::Constants::FEATURE_QT_CONSOLE);
......
......@@ -56,7 +56,6 @@ const char FEATURE_QT_QUICK_1_1[] = "QtSupport.Wizards.FeatureQtQuick.1.1";
const char FEATURE_QT_QUICK_2[] = "QtSupport.Wizards.FeatureQtQuick.2";
const char FEATURE_QT_WEBKIT[] = "QtSupport.Wizards.FeatureQtWebkit";
const char FEATURE_QT_CONSOLE[] = "QtSupport.Wizards.FeatureQtConsole";
const char FEATURE_GENERIC_CPP_ENTRY_POINT[] ="QtSupport.Wizards.FeatureGenericCppEntryPoint";
const char FEATURE_QTQUICK_COMPONENTS_SYMBIAN[] = "QtSupport.Wizards.FeatureQtQuickComponentsSymbian";
const char FEATURE_QTQUICK_COMPONENTS_MEEGO[] = "QtSupport.Wizards.FeatureQtQuickComponentsMeego";
const char FEATURE_MOBILE[] = "QtSupport.Wizards.FeatureMobile";
......
......@@ -569,8 +569,7 @@ Core::FeatureSet QtVersionManager::availableFeatures(const QString &platformName
if (qtVersion->isValid() && ((qtVersion->platformName() == platformName) || platformName.isEmpty()))
features |= qtVersion->availableFeatures();
}
if (validVersions().empty())
features |= Constants::FEATURE_GENERIC_CPP_ENTRY_POINT;
return features;
}
......
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