diff options
author | Alessandro Portale <alessandro.portale@nokia.com> | 2011-11-03 19:50:20 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@nokia.com> | 2011-11-03 19:54:44 +0100 |
commit | f642280ee5fd0dfc7ec7da7e6b8b38fbd28c6535 (patch) | |
tree | 9b17fcaeb51c7384bb65bfb15cd68323d7b87f6e /src/plugins | |
parent | 7c93cfdcf0b5110824a071d3113c2531118a5fa0 (diff) | |
download | qt-creator-f642280ee5fd0dfc7ec7da7e6b8b38fbd28c6535.tar.gz |
App Wizard templates: Use com.nokia.symbian 1.1 instead of 1.0
Bumping the minimum required Qt version from 4.7.3 to 4.7.4,
accordingly.
Change-Id: I1f88278552c83ff18f9a710eb1f08b74f43688b8
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Diffstat (limited to 'src/plugins')
5 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/qt4projectmanager/wizards/qtquickapp.cpp b/src/plugins/qt4projectmanager/wizards/qtquickapp.cpp index d18b69ca48..a5d991f9f8 100644 --- a/src/plugins/qt4projectmanager/wizards/qtquickapp.cpp +++ b/src/plugins/qt4projectmanager/wizards/qtquickapp.cpp @@ -261,7 +261,7 @@ void QtQuickApp::handleCurrentProFileTemplateLine(const QString &line, proFile << endl; } else if (line.contains(QLatin1String("# QTQUICKCOMPONENTS"))) { QString nextLine = proFileTemplate.readLine(); // eats '# CONFIG += qtquickcomponents' - if (componentSet() == Symbian10Components) + if (componentSet() == Symbian11Components) nextLine.remove(0, 2); // remove comment proFile << nextLine << endl; } else if (line.contains(QLatin1String("# HARMATTAN_BOOSTABLE"))) { @@ -355,7 +355,7 @@ Core::GeneratedFiles QtQuickApp::generateFiles(QString *errorMessage) const Core::GeneratedFiles files = AbstractMobileApp::generateFiles(errorMessage); if (!useExistingMainQml()) { files.append(file(generateFile(QtQuickAppGeneratedFileInfo::MainQmlFile, errorMessage), path(MainQml))); - if ((componentSet() == QtQuickApp::Symbian10Components) + if ((componentSet() == QtQuickApp::Symbian11Components) || (componentSet() == QtQuickApp::Meego10Components)) files.append(file(generateFile(QtQuickAppGeneratedFileInfo::MainPageQmlFile, errorMessage), path(MainPageQml))); files.last().setAttributes(Core::GeneratedFile::OpenEditorAttribute); @@ -456,8 +456,8 @@ QList<DeploymentFolder> QtQuickApp::deploymentFolders() const QString QtQuickApp::componentSetDir(ComponentSet componentSet) const { switch (componentSet) { - case Symbian10Components: - return QLatin1String("symbian10"); + case Symbian11Components: + return QLatin1String("symbian11"); case Meego10Components: return QLatin1String("meego10"); case QtQuick10Components: diff --git a/src/plugins/qt4projectmanager/wizards/qtquickapp.h b/src/plugins/qt4projectmanager/wizards/qtquickapp.h index e67518b062..74d739e15c 100644 --- a/src/plugins/qt4projectmanager/wizards/qtquickapp.h +++ b/src/plugins/qt4projectmanager/wizards/qtquickapp.h @@ -117,7 +117,7 @@ public: enum ComponentSet { QtQuick10Components, - Symbian10Components, + Symbian11Components, Meego10Components }; diff --git a/src/plugins/qt4projectmanager/wizards/qtquickappwizard.cpp b/src/plugins/qt4projectmanager/wizards/qtquickappwizard.cpp index 4565135de2..6dbc23b20b 100644 --- a/src/plugins/qt4projectmanager/wizards/qtquickappwizard.cpp +++ b/src/plugins/qt4projectmanager/wizards/qtquickappwizard.cpp @@ -85,9 +85,9 @@ bool QtQuickAppWizardDialog::validateCurrentPage() { if (currentPage() == m_componentOptionsPage) { setIgnoreGenericOptionsPage(false); - if (m_componentOptionsPage->componentSet() == QtQuickApp::Symbian10Components) { + if (m_componentOptionsPage->componentSet() == QtQuickApp::Symbian11Components) { setIgnoreGenericOptionsPage(true); - targetsPage()->setMinimumQtVersion(QtSupport::QtVersionNumber(4, 7, 3)); + targetsPage()->setMinimumQtVersion(QtSupport::QtVersionNumber(4, 7, 4)); QSet<QString> requiredFeatures; requiredFeatures << Constants::QTQUICKCOMPONENTS_SYMBIAN_TARGETFEATURE_ID; targetsPage()->setRequiredFeatures(requiredFeatures); @@ -139,7 +139,7 @@ Core::BaseFileWizardParameters QtQuickAppWizard::parameters() "Symbian Installation System (SIS) packages for this type of " "projects. Moreover, you can select to use a set of premade " "UI components in your Qt Quick application. " - "To utilize the components, Qt 4.7.3 or newer is required.")); + "To utilize the components, Qt 4.7.4 or newer is required.")); parameters.setCategory(QLatin1String(QtSupport::Constants::QML_WIZARD_CATEGORY)); parameters.setDisplayCategory(QCoreApplication::translate(QtSupport::Constants::QML_WIZARD_TR_SCOPE, QtSupport::Constants::QML_WIZARD_TR_CATEGORY)); @@ -170,7 +170,7 @@ void QtQuickAppWizard::prepareGenerateFiles(const QWizard *w, d->app->setMainQml(QtQuickApp::ModeImport, mainQmlFile); } d->app->setComponentSet(wizard->m_componentOptionsPage->componentSet()); - if (d->app->componentSet() == QtQuickApp::Symbian10Components) + if (d->app->componentSet() == QtQuickApp::Symbian11Components) d->app->setOrientation(AbstractMobileApp::ScreenOrientationImplicit); } diff --git a/src/plugins/qt4projectmanager/wizards/qtquickappwizardpages.cpp b/src/plugins/qt4projectmanager/wizards/qtquickappwizardpages.cpp index 90e9c6987e..c252e0aa22 100644 --- a/src/plugins/qt4projectmanager/wizards/qtquickappwizardpages.cpp +++ b/src/plugins/qt4projectmanager/wizards/qtquickappwizardpages.cpp @@ -82,7 +82,7 @@ QtQuickApp::ComponentSet QtQuickComponentSetOptionsPage::componentSet() const { switch (d->ui.buttonGroup->checkedId()) { case 2: return QtQuickApp::Meego10Components; - case 1: return QtQuickApp::Symbian10Components; + case 1: return QtQuickApp::Symbian11Components; case 0: default: return QtQuickApp::QtQuick10Components; } @@ -92,7 +92,7 @@ void QtQuickComponentSetOptionsPage::setComponentSet(QtQuickApp::ComponentSet co { switch (componentSet) { case QtQuickApp::Meego10Components: d->ui.meego10RadioButton->click(); break; - case QtQuickApp::Symbian10Components: d->ui.symbian10RadioButton->click(); break; + case QtQuickApp::Symbian11Components: d->ui.symbian10RadioButton->click(); break; case QtQuickApp::QtQuick10Components: default: d->ui.qtquick10RadioButton->click(); break; } diff --git a/src/plugins/qt4projectmanager/wizards/qtquickcomponentsetoptionspage.ui b/src/plugins/qt4projectmanager/wizards/qtquickcomponentsetoptionspage.ui index 34c825dbc7..43437de33a 100644 --- a/src/plugins/qt4projectmanager/wizards/qtquickcomponentsetoptionspage.ui +++ b/src/plugins/qt4projectmanager/wizards/qtquickcomponentsetoptionspage.ui @@ -134,7 +134,7 @@ Requires Qt 4.7.1 or newer.</string> <property name="text"> <string>The Qt Quick Components for Symbian are a set of ready-made components that are designed with specific native appearance for the Symbian platform. -Requires Qt 4.7.3 or newer, and the component set installed for your Qt version.</string> +Requires Qt 4.7.4 or newer, and the component set installed for your Qt version.</string> </property> <property name="alignment"> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> |