Update porting docs
authorAlan Alpert <aalpert@rim.com>
Sat, 8 Dec 2012 20:20:35 +0000 (12:20 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 12 Dec 2012 15:50:17 +0000 (16:50 +0100)
Some improvements to the QML engine in Qt 5 lead to behavior changes.
These should be explained in the porting guide.

Task-number: QTBUG-28411
Change-Id: Ifc4016cf7b33ba113dbe0cbabd2f71a4ff1a8685
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Bea Lam <bea.lam@jollamobile.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/quick/doc/src/appdevguide/porting.qdoc

index 6bb2a75..305524c 100644 (file)
@@ -27,7 +27,7 @@
 
 /*!
 \page qtquick-porting-qt5.html
-\title QML Applications in Qt 5
+\title Porting QML Applications to Qt 5
 \brief Lists the Qt 5.0 changes that affect the existing QML applications
 
 When porting QML-related code from Qt 4.8 to Qt 5, application developers should be aware that
@@ -38,6 +38,15 @@ This article describes the changes that affect your existing code. If you are
 interested in the summary of all new features in Qt 5 for QML application development, see
 \l{qtqml-releasenotes.html}{QtQml Release Notes} and \l{qtquick-releasenotes.html}{QtQuick Release Notes}.
 
+\section1 QML Language changes
+
+There are very few changes in the QML language which affect the porting of existing Qt 4.8 QML code to Qt 5. These are:
+
+\list
+\li Individual file imports no longer work (e.g. import "MyType.qml"). Import the containing directory instead.
+\li Relative file paths in JavaScript files are now resolved relative to the location of the JavaScript file instead of the QML file that imported it.
+\endlist
+
 \section1 QtQuick Module
 
 The QtQuick module has been updated to version 2.0. All QML applications should update their import