diff options
author | Glenn Watson <glenn.watson@nokia.com> | 2012-07-24 11:41:50 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-08 07:55:19 +0200 |
commit | 6ebf215fdaf2d757ab90ae4d46c4b938e978e2dc (patch) | |
tree | 515da352f1cc4d5567b6d93f0b19952b2e27d705 /src/quick/doc/src | |
parent | 92562eacbc3c614a83a734f1108ed7df02415eae (diff) |
Add type name to singleton (module api) implementations.
This change renames the previous module api implementation
to singleton types.
When a singleton type is registered, a type name must be provided
that is used when accessing the API from QML. This makes the
implementation more consistent with the rest of QML.
Task-number: QTBUG-26549
Change-Id: Iab0bb1ccf516bd3ae20aee562a64d22976e0aecd
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'src/quick/doc/src')
-rw-r--r-- | src/quick/doc/src/appdevguide/performance.qdoc | 4 | ||||
-rw-r--r-- | src/quick/doc/src/appdevguide/porting.qdoc | 4 | ||||
-rw-r--r-- | src/quick/doc/src/qmltypereference.qdoc | 2 | ||||
-rw-r--r-- | src/quick/doc/src/qtquick.qdoc | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/doc/src/appdevguide/performance.qdoc b/src/quick/doc/src/appdevguide/performance.qdoc index 5250f91a50..c3fa15975c 100644 --- a/src/quick/doc/src/appdevguide/performance.qdoc +++ b/src/quick/doc/src/appdevguide/performance.qdoc @@ -944,10 +944,10 @@ component doesn't already exist in the component set for your platform. Otherwi will be forcing the QML engine to generate and store type-data for a type which is essentially a duplicate of another pre-existing and potentially already loaded component. -\section3 Use module APIs instead of pragma library scripts +\section3 Use singleton types instead of pragma library scripts If you are using a pragma library script to store application-wide instance data, -consider using a QObject module API instead. This should result in better performance, +consider using a QObject singleton type instead. This should result in better performance, and will result in less JavaScript heap memory being used. \section2 Memory Allocation in a QML Application diff --git a/src/quick/doc/src/appdevguide/porting.qdoc b/src/quick/doc/src/appdevguide/porting.qdoc index 0f1cf1464c..35860a893a 100644 --- a/src/quick/doc/src/appdevguide/porting.qdoc +++ b/src/quick/doc/src/appdevguide/porting.qdoc @@ -66,8 +66,8 @@ Qt.inputMethod.hide() to show and hide the virtual keyboard. \li XmlListModel has moved into its own module, QtQuick.XmlListModel. Any code that uses the XmlListModel and XmlRole types must import \e {QtQuick.XmlListModel} instead. \li The local storage API that enables SQL support has been moved from the \l {QML Global Object} -into a \c QtQuick.LocalStorage module API. Any code that requires the local storage API must import -\e {QtQuick.LocalStorage} with a namespaced import instead. See the \l \l{QtQuick.LocalStorage 2}{QtQuick.LocalStorage} documentation +into a \c QtQuick.LocalStorage singleton type. Any code that requires the local storage API must import +\e {QtQuick.LocalStorage} instead. See the \l \l{QtQuick.LocalStorage 2}{QtQuick.LocalStorage} documentation for examples. \li The \c LayoutItem type has been removed from the \c QtQuick module as it was specific to the Graphics View framework backend used in QtQuick 1. diff --git a/src/quick/doc/src/qmltypereference.qdoc b/src/quick/doc/src/qmltypereference.qdoc index 1db07cec47..241a59a92b 100644 --- a/src/quick/doc/src/qmltypereference.qdoc +++ b/src/quick/doc/src/qmltypereference.qdoc @@ -231,7 +231,7 @@ Views Data Storage \list -\li \l {QtQuick.LocalStorage 2} - Module API providing simplified SQL access +\li \l {QtQuick.LocalStorage 2} - Singleton type providing simplified SQL access \endlist \section2 Graphical Effects diff --git a/src/quick/doc/src/qtquick.qdoc b/src/quick/doc/src/qtquick.qdoc index 7c7715021b..bd8071e999 100644 --- a/src/quick/doc/src/qtquick.qdoc +++ b/src/quick/doc/src/qtquick.qdoc @@ -102,7 +102,7 @@ To find out more about using the QML language, see the \l{Qt QML Module Document More information about the Qt Quick module is contained within the class and function documentation of the \l{qtquick-apireference.html} -{Qt Quick Module API Reference}. The QML types provided by the Qt Quick module +{Qt Quick Singleton Type Reference}. The QML types provided by the Qt Quick module are listed in the \l{qtquick-qmltypereference.html} {Qt Quick Module QML Type Reference} page. |