diff --git a/share/qtcreator/templates/qtquickapp/qml/app/symbian10/main.qml b/share/qtcreator/templates/qtquickapp/qml/app/symbian10/main.qml deleted file mode 100644 index 339b042a12e6c2c200dbab3a0b5891c4b7d69b56..0000000000000000000000000000000000000000 --- a/share/qtcreator/templates/qtquickapp/qml/app/symbian10/main.qml +++ /dev/null @@ -1,33 +0,0 @@ -import QtQuick 1.0 -import com.nokia.symbian 1.0 - -Window { - id: window - - StatusBar { - id: statusBar - anchors.top: window.top - } - - PageStack { - id: pageStack - anchors { left: parent.left; right: parent.right; top: statusBar.bottom; bottom: toolBar.top } - } - - ToolBar { - id: toolBar - anchors.bottom: window.bottom - tools: ToolBarLayout { - id: toolBarLayout - ToolButton { - flat: true - iconSource: "toolbar-back" - onClicked: pageStack.depth <= 1 ? Qt.quit() : pageStack.pop() - } - } - } - - Component.onCompleted: { - pageStack.push(Qt.resolvedUrl("MainPage.qml")) - } -} diff --git a/share/qtcreator/templates/qtquickapp/qml/app/symbian10/MainPage.qml b/share/qtcreator/templates/qtquickapp/qml/app/symbian11/MainPage.qml similarity index 79% rename from share/qtcreator/templates/qtquickapp/qml/app/symbian10/MainPage.qml rename to share/qtcreator/templates/qtquickapp/qml/app/symbian11/MainPage.qml index 76273b89ff0c3990650759061affd468580f4b2c..285ac3418804c1ba705d516c250bcf18eca3e79d 100644 --- a/share/qtcreator/templates/qtquickapp/qml/app/symbian10/MainPage.qml +++ b/share/qtcreator/templates/qtquickapp/qml/app/symbian11/MainPage.qml @@ -1,5 +1,5 @@ -import QtQuick 1.0 -import com.nokia.symbian 1.0 +import QtQuick 1.1 +import com.nokia.symbian 1.1 Page { id: mainPage diff --git a/share/qtcreator/templates/qtquickapp/qml/app/symbian11/main.qml b/share/qtcreator/templates/qtquickapp/qml/app/symbian11/main.qml new file mode 100644 index 0000000000000000000000000000000000000000..85a0994a5335abfa530d8b7c9094a67db8c63d9f --- /dev/null +++ b/share/qtcreator/templates/qtquickapp/qml/app/symbian11/main.qml @@ -0,0 +1,18 @@ +import QtQuick 1.1 +import com.nokia.symbian 1.1 + +PageStackWindow { + id: window + initialPage: MainPage {tools: toolBarLayout} + showStatusBar: true + showToolBar: true + + ToolBarLayout { + id: toolBarLayout + ToolButton { + flat: true + iconSource: "toolbar-back" + onClicked: window.pageStack.depth <= 1 ? Qt.quit() : window.pageStack.pop() + } + } +} diff --git a/src/plugins/qt4projectmanager/wizards/qtquickapp.cpp b/src/plugins/qt4projectmanager/wizards/qtquickapp.cpp index d18b69ca48c1d48b66a423c42a6b1752be249f04..a5d991f9f86f1611cf436743abcca1cf46610e8c 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 e67518b062dbd9313b4c119bb7b7585743f23023..74d739e15ca64d6059e4b436f736f2ebfff53542 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 4565135de2697598a9a627480d62facf5fdbbd54..6dbc23b20b0ae939ae1770cd043c054c5ea274f9 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 90e9c6987ecb7388d3aab49f9cceb48e3de944c5..c252e0aa2256f1529a2684a55dbb40e65eecb53a 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 34c825dbc7f7b756e59bb6935d8d54fa962f4ec5..43437de33a7434ce363eca083b4cf6fb9b379667 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>