aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@digia.com>2013-03-06 15:48:13 +0100
committerLeena Miettinen <riitta-leena.miettinen@digia.com>2013-03-06 16:42:15 +0100
commita3b9c48f67f675f510195232216d42b3d6a47fbe (patch)
tree2c1d4db2da92ea38b51eac10465f61fd1a8bd93f
parentad14a4663334e2a6c087f4145388724dc0bb66f4 (diff)
Doc: update the tutorial app to Qt Quick 2
Change-Id: I9fafe7471567ed9cffae9e86a6c7e15069b683cb Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
-rw-r--r--doc/examples/transitions/Transitions.pro19
-rw-r--r--doc/examples/transitions/main.cpp14
-rw-r--r--doc/examples/transitions/main.qml (renamed from doc/examples/transitions/qml/Transitions/main.qml)2
-rw-r--r--doc/examples/transitions/states.png (renamed from doc/examples/transitions/qml/Transitions/states.png)bin3400 -> 3400 bytes
-rw-r--r--doc/src/overview/creator-tutorials.qdoc4
-rw-r--r--doc/src/projects/creator-projects-creating.qdoc4
-rw-r--r--doc/src/qtcreator.qdoc2
-rw-r--r--doc/src/qtquick/qtquick-app-tutorial.qdoc24
8 files changed, 18 insertions, 51 deletions
diff --git a/doc/examples/transitions/Transitions.pro b/doc/examples/transitions/Transitions.pro
deleted file mode 100644
index 2fb4d91e25..0000000000
--- a/doc/examples/transitions/Transitions.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-# Add more folders to ship with the application, here
-folder_01.source = qml/Transitions
-folder_01.target = qml
-DEPLOYMENTFOLDERS = folder_01
-
-# Additional import path used to resolve QML modules in Creator's code model
-QML_IMPORT_PATH =
-
-# If your application uses the Qt Mobility libraries, uncomment the following
-# lines and add the respective components to the MOBILITY variable.
-# CONFIG += mobility
-# MOBILITY +=
-
-# The .cpp file which was generated for your project. Feel free to hack it.
-SOURCES += main.cpp
-
-# Please do not modify the following two lines. Required for deployment.
-include(qmlapplicationviewer/qmlapplicationviewer.pri)
-qtcAddDeployment()
diff --git a/doc/examples/transitions/main.cpp b/doc/examples/transitions/main.cpp
deleted file mode 100644
index cc176f1864..0000000000
--- a/doc/examples/transitions/main.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <QApplication>
-#include "qmlapplicationviewer.h"
-
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv);
-
- QmlApplicationViewer viewer;
- viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
- viewer.setMainQmlFile(QLatin1String("qml/Transitions/main.qml"));
- viewer.showExpanded();
-
- return app.exec();
-}
diff --git a/doc/examples/transitions/qml/Transitions/main.qml b/doc/examples/transitions/main.qml
index 6f1800ce85..b87a998e79 100644
--- a/doc/examples/transitions/qml/Transitions/main.qml
+++ b/doc/examples/transitions/main.qml
@@ -4,7 +4,7 @@
//! [0]
-import QtQuick 1.1
+import QtQuick 2.0
Rectangle {
id: page
diff --git a/doc/examples/transitions/qml/Transitions/states.png b/doc/examples/transitions/states.png
index 707d5c4e85..707d5c4e85 100644
--- a/doc/examples/transitions/qml/Transitions/states.png
+++ b/doc/examples/transitions/states.png
Binary files differ
diff --git a/doc/src/overview/creator-tutorials.qdoc b/doc/src/overview/creator-tutorials.qdoc
index 6749c62f19..b3513c2943 100644
--- a/doc/src/overview/creator-tutorials.qdoc
+++ b/doc/src/overview/creator-tutorials.qdoc
@@ -38,9 +38,9 @@
\list
- \li \l{Creating a Qt Quick 1 Application}
+ \li \l{Creating a Qt Quick Application}
- Learn how to use \QMLD to create a Qt Quick 1 application.
+ Learn how to use \QMLD to create a Qt Quick application.
\li \l{Creating a Qt Widget Based Application}
diff --git a/doc/src/projects/creator-projects-creating.qdoc b/doc/src/projects/creator-projects-creating.qdoc
index a91942fddb..1cbdc0f95f 100644
--- a/doc/src/projects/creator-projects-creating.qdoc
+++ b/doc/src/projects/creator-projects-creating.qdoc
@@ -125,9 +125,9 @@
Use Qt Quick Components for MeeGo Harmattan to design a user
interface with the platform look and feel
- \li Qt Quick 1 Application (from Existing QML File)
+ \li Qt Quick Application (from Existing QML File)
- Convert existing Qt Quick 1 applications to projects that you
+ Convert existing Qt Quick applications to projects that you
can run in \QC or deploy to mobile devices
\li Qt Console Application
diff --git a/doc/src/qtcreator.qdoc b/doc/src/qtcreator.qdoc
index a9ed1ccc5a..1853a43218 100644
--- a/doc/src/qtcreator.qdoc
+++ b/doc/src/qtcreator.qdoc
@@ -150,7 +150,7 @@
\li \l{Building and Running an Example}
\li \l{Tutorials}
\list
- \li \l{Creating a Qt Quick 1 Application}
+ \li \l{Creating a Qt Quick Application}
\li \l{Creating a Qt Widget Based Application}
\endlist
\endlist
diff --git a/doc/src/qtquick/qtquick-app-tutorial.qdoc b/doc/src/qtquick/qtquick-app-tutorial.qdoc
index 0e2a85080a..3d24911ae1 100644
--- a/doc/src/qtquick/qtquick-app-tutorial.qdoc
+++ b/doc/src/qtquick/qtquick-app-tutorial.qdoc
@@ -28,19 +28,15 @@
\page creator-qml-application.html
\nextpage creator-writing-program.html
- \title Creating a Qt Quick 1 Application
-
- \note We recommend that you use Qt Quick 2 to develop new applications for
- platforms that run Qt 5.
+ \title Creating a Qt Quick Application
This tutorial uses built-in QML elements and illustrates basic concepts of
- \l {http://qt-project.org/doc/qt-4.8/qtquick.html}{Qt Quick 1}.
+ \l {http://qt-project.org/doc/qt-5.0/qtquick/qtquick-index.html}{Qt Quick}.
- This tutorial describes how to use the \QC to implement the
- \l{http://qt-project.org/doc/qt-4.8/declarative-animation-states.html}
- {states and transitions example application}. The example application
- displays a Qt logo that moves between three rectangles on the page when you
- click them.
+ This tutorial describes how to use \QC to implement Qt states and transitions. We use
+ \l{http://qt-project.org/doc/qt-5.0/qtquick/quick-animation.html}{Qt example code} to
+ create an application that displays a Qt logo that moves between three rectangles on the
+ page when you click them.
\image qmldesigner-tutorial.png "States and transitions example"
@@ -52,7 +48,11 @@
\list 1
\li Select \gui{File > New File or Project > Applications >
- Qt Quick 1 Application (Built-in Elements) > Choose}.
+ Qt Quick 2 Application (Built-in Elements) > Choose}.
+
+ \note The QML types used in this example are also supported in Qt Quick 1. To create
+ this example application for platforms that run Qt 4, select \gui {Qt Quick 1
+ Application (Built-in Elements)}.
\li In the \gui{Name} field, type \b {Transitions}.
@@ -89,7 +89,7 @@
To use the states.png image in your application, you must copy it to the
project directory (same subdirectory as the QML file) from the examples
directory in the Qt installation directory. For example:
- \c {C:\QtSDK\Examples\4.7\declarative\animation\states}. The image appears
+ \c {C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\declarative\animation\states}. The image appears
in the \gui Resources pane. You can also use any other image or a QML
element, instead.