Update documentation
authorAlan Alpert <alan.alpert@nokia.com>
Mon, 26 Mar 2012 08:56:47 +0000 (18:56 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 27 Mar 2012 03:29:41 +0000 (05:29 +0200)
Added \inmodule tags for qml module classes which were lacking them.
Also updated the \since to 5.0.

Change-Id: Ia5d393d593fdb484893cd4e3796b6854d4c637b3
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/qml/qml/qqmlcomponent.cpp
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlerror.cpp
src/qml/qml/qqmlexpression.cpp
src/qml/qml/qqmlextensionplugin.cpp
src/qml/qml/qqmlimageprovider.cpp
src/qml/qml/qqmllist.cpp
src/qml/qml/qqmlnetworkaccessmanagerfactory.cpp
src/qml/qml/qqmlparserstatus.cpp
src/qml/qml/qqmlproperty.cpp

index 416178e3e14ad0c09acd17b5b48fe792c6346c26..7bddaadcd025c64963e13c11c2926a2eaf3d2894 100644 (file)
@@ -110,8 +110,9 @@ static inline QString buildTypeNameForDebug(const QMetaObject *metaObject)
 
 /*!
     \class QQmlComponent
-    \since 4.7
+    \since 5.0
     \brief The QQmlComponent class encapsulates a QML component definition.
+    \inmodule QtQml
     \mainclass
 
     Components are reusable, encapsulated QML elements with well-defined interfaces.
@@ -179,6 +180,8 @@ static inline QString buildTypeNameForDebug(const QMetaObject *metaObject)
     }
     \endcode
 
+    Note that the QtQuick 1 version is named QDeclarativeComponent.
+
     \sa {Using QML Bindings in C++ Applications}, {Integrating QML Code with Existing Qt UI Code}
 */
 
index c926a8ed42e20bff51964ce39a2fc2d42c1a8067..ec728045717151bac92650ab32a1ba110487d1dc 100644 (file)
@@ -473,7 +473,8 @@ QQuickWorkerScriptEngine *QQmlEnginePrivate::getWorkerScriptEngine()
 
 /*!
   \class QQmlEngine
-  \since 4.7
+  \since 5.0
+  \inmodule QtQml
   \brief The QQmlEngine class provides an environment for instantiating QML components.
   \mainclass
 
@@ -499,6 +500,8 @@ QQuickWorkerScriptEngine *QQmlEnginePrivate::getWorkerScriptEngine()
   In this case, the Text item will be created in the engine's
   \l {QQmlEngine::rootContext()}{root context}.
 
+  Note that the QtQuick 1 version is called QDeclarativeEngine.
+
   \sa QQmlComponent QQmlContext
 */
 
index 79424913f80cfe690db38e4517ac5440de4e76e1..ce7fd01fdf645bc95eb50e730349eac398ee13d3 100644 (file)
@@ -49,7 +49,8 @@ QT_BEGIN_NAMESPACE
 
 /*!
     \class QQmlError
-    \since 4.7
+    \since 5.0
+    \inmodule QtQml
     \brief The QQmlError class encapsulates a QML error.
 
     QQmlError includes a textual description of the error, as well
@@ -69,6 +70,8 @@ QT_BEGIN_NAMESPACE
                ^
     \endcode
 
+    Note that the QtQuick 1 version is named QDeclarativeError
+
     \sa QQuickView::errors(), QQmlComponent::errors()
 */
 class QQmlErrorPrivate
index 60a0fe1c89c5697ed21f3d072b9fd0dc75dd9cb3..d760486605a6ec4c6c2191108601c536c1cb2d89 100644 (file)
@@ -137,7 +137,8 @@ QQmlExpressionPrivate::create(QQmlContextData *ctxt, QObject *object,
 
 /*!
     \class QQmlExpression
-    \since 4.7
+    \since 5.0
+    \inmodule QtQml
     \brief The QQmlExpression class evaluates JavaScript in a QML context.
 
     For example, given a file \c main.qml like this:
@@ -161,6 +162,8 @@ QQmlExpressionPrivate::create(QQmlContextData *ctxt, QObject *object,
     QQmlExpression *expr = new QQmlExpression(engine->rootContext(), myObject, "width * 2");
     int result = expr->evaluate().toInt();  // result = 400
     \endcode
+
+    Note that the QtQuick 1 version is called QDeclarativeExpression.
 */
 
 /*!
index 86d9f9588db2d7f0ac4aa0d3baa2537cf3031a7f..73d74f9e2117a8db3d9d5562342fab2e1d31c55a 100644 (file)
@@ -44,7 +44,8 @@
 QT_BEGIN_NAMESPACE
 
 /*!
-    \since 4.7
+    \since 5.0
+    \inmodule QtQml
     \class QQmlExtensionPlugin
     \brief The QQmlExtensionPlugin class provides an abstract base for custom QML extension plugins.
 
@@ -75,7 +76,7 @@ QT_BEGIN_NAMESPACE
     as a new QML element. It provides the current time through \c hour and \c minute 
     properties, like this:
 
-    \snippet examples/declarative/cppextensions/plugins/plugin.cpp 0
+    \snippet examples/qml/cppextensions/plugins/plugin.cpp 0
     \dots
 
     To make this class available as a QML type, create a plugin that registers
@@ -83,9 +84,9 @@ QT_BEGIN_NAMESPACE
     module will be named \c com.nokia.TimeExample (as defined in the project
     file further below).
 
-    \snippet examples/declarative/cppextensions/plugins/plugin.cpp plugin
+    \snippet examples/qml/cppextensions/plugins/plugin.cpp plugin
     \codeline
-    \snippet examples/declarative/cppextensions/plugins/plugin.cpp export
+    \snippet examples/qml/cppextensions/plugins/plugin.cpp export
 
     This registers the \c TimeModel class with the 1.0 version of this 
     plugin library, as a QML type called \c Time. The Q_ASSERT statement 
@@ -121,6 +122,8 @@ QT_BEGIN_NAMESPACE
     The \l {Tutorial: Writing QML extensions with C++} also contains a chapter
     on creating QML plugins.
 
+    Note that the QtQuick 1 version is called QDeclarativeExtensionPlugin.
+
     \sa QQmlEngine::importPlugin(), {How to Create Qt Plugins}
 */
 
index d1afa544982967ae400d49a84f227bd9ccb15b9f..5742b00de39d9b87f79c4c246d4595e8f243e32e 100644 (file)
@@ -53,6 +53,7 @@ public:
     \class QQuickTextureFactory
     \since 5.0
     \brief The QQuickTextureFactory class provides an interface for loading custom textures from QML.
+    \inmodule QtQml
 
     The purpose of the texture factory is to provide a placeholder for a image
     data that can be converted into an OpenGL texture.
@@ -110,7 +111,8 @@ QImage QQuickTextureFactory::image() const
 
 /*!
     \class QQmlImageProvider
-    \since 4.7
+    \since 5.0
+    \inmodule QtQml
     \brief The QQmlImageProvider class provides an interface for supporting pixmaps and threaded image requests in QML.
 
     QQmlImageProvider is used to provide advanced image loading features
@@ -218,6 +220,8 @@ QImage QQuickTextureFactory::image() const
     \c cache property to \c false for the relevant \l Image, \l BorderImage or
     \l AnimatedImage object.
 
+    The QtQuick 1 version of this class is named QDeclarativeImageProvider.
+
     \sa QQmlEngine::addImageProvider()
 */
 
index 00fd805ee0c392b720cd6c7746d3b10bb2c08a5d..ad28e38a64ba3a0cdce1142c44afdb261fa4874d 100644 (file)
@@ -87,7 +87,7 @@ void QQmlListReferencePrivate::release()
 
 /*!
 \class QQmlListReference
-\since 4.7
+\since 5.0
 \module QtQml
 \brief The QQmlListReference class allows the manipulation of QQmlListProperty properties.
 
@@ -111,6 +111,8 @@ Attempting to add objects of the incorrect type to a list property will fail.
 
 Like with normal lists, when accessing a list element by index, it is the callers responsibility to ensure 
 that it does not request an out of range element using the count() method before calling at().
+
+The QtQuick 1 version of this class is named QDeclarativeListReference.
 */
 
 /*!
@@ -306,7 +308,8 @@ int QQmlListReference::count() const
 
 /*!
 \class QQmlListProperty
-\since 4.7
+\since 5.0
+\inmodule QtQml
 \brief The QQmlListProperty class allows applications to expose list-like 
 properties to QML.
 
@@ -340,6 +343,8 @@ Q_PROPERTY(QQmlListProperty<Fruit> fruit READ fruit);
 QML list properties are typesafe - in this case \c {Fruit} is a QObject type that 
 \c {Apple}, \c {Orange} and \c {Banana} all derive from.
 
+The QtQuick 1 version of this class is named QDeclarativeListProperty.
+
 \note QQmlListProperty can only be used for lists of QObject-derived object pointers.
 
 \sa {Object and List Property Types}
index e5d0d708e2932e36dc5c063028f09cff46553b8f..4c31e557bc93cc7718f44ff7d5dc567c455eda6c 100644 (file)
@@ -45,7 +45,8 @@ QT_BEGIN_NAMESPACE
 
 /*!
     \class QQmlNetworkAccessManagerFactory
-    \since 4.7
+    \since 5.0
+    \inmodule QtQml
     \brief The QQmlNetworkAccessManagerFactory class creates QNetworkAccessManager instances for a QML engine.
 
     A QML engine uses QNetworkAccessManager for all network access.
@@ -79,7 +80,9 @@ QT_BEGIN_NAMESPACE
     For more information about signals and threads, see
     \l {Threads and QObjects} and \l {Signals and Slots Across Threads}.
 
-    \sa {declarative/cppextensions/networkaccessmanagerfactory}{NetworkAccessManagerFactory example}
+    The QtQuick 1 version of this class is named QDeclarativeNetworkAccessManagerFactory.
+
+    \sa {qml/cppextensions/networkaccessmanagerfactory}{NetworkAccessManagerFactory example}
 */
 
 /*!
index d4e415a069edef0e671ae0f38369c6239a602e2a..8468a1da009f25c177bbf9ab34ed031ad39b98ee 100644 (file)
@@ -45,7 +45,8 @@ QT_BEGIN_NAMESPACE
 
 /*!
     \class QQmlParserStatus
-    \since 4.7
+    \since 5.0
+    \inmodule QtQml
     \brief The QQmlParserStatus class provides updates on the QML parser state.
 
     QQmlParserStatus provides a mechanism for classes instantiated by
@@ -75,6 +76,8 @@ QT_BEGIN_NAMESPACE
         void componentComplete();
     }
     \endcode
+
+    The QtQuick 1.0 version of this class is named QDeclarativeParserStatus.
 */
 
 /*! \internal */
index 0848df62c758063b9a5b1dcc1c01f5367c2438b3..ea7d624c2cfe5dfcfa965390b9032717cc2d6d70 100644 (file)
@@ -72,7 +72,8 @@ QT_BEGIN_NAMESPACE
 
 /*!
 \class QQmlProperty
-\since 4.7
+\since 5.0
+\inmodule QtQml
 \brief The QQmlProperty class abstracts accessing properties on objects created from  QML.
 
 As QML uses Qt's meta-type system all of the existing QMetaObject classes can be used to introspect
@@ -108,6 +109,8 @@ qWarning() << "Current pixel size:" << property.read().toInt();
 property.write(24);
 qWarning() << "Pixel size should now be 24:" << property.read().toInt();
 \endcode
+
+The QtQuick 1 version of this class was named QDeclarativeProperty.
 */
 
 /*!