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>
/*!
\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.
}
\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}
*/
/*!
\class QQmlEngine
- \since 4.7
+ \since 5.0
+ \inmodule QtQml
\brief The QQmlEngine class provides an environment for instantiating QML components.
\mainclass
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
*/
/*!
\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
^
\endcode
+ Note that the QtQuick 1 version is named QDeclarativeError
+
\sa QQuickView::errors(), QQmlComponent::errors()
*/
class QQmlErrorPrivate
/*!
\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:
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.
*/
/*!
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.
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
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
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}
*/
\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.
/*!
\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
\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()
*/
/*!
\class QQmlListReference
-\since 4.7
+\since 5.0
\module QtQml
\brief The QQmlListReference class allows the manipulation of QQmlListProperty properties.
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.
*/
/*!
/*!
\class QQmlListProperty
-\since 4.7
+\since 5.0
+\inmodule QtQml
\brief The QQmlListProperty class allows applications to expose list-like
properties to QML.
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}
/*!
\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.
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}
*/
/*!
/*!
\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
void componentComplete();
}
\endcode
+
+ The QtQuick 1.0 version of this class is named QDeclarativeParserStatus.
*/
/*! \internal */
/*!
\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
property.write(24);
qWarning() << "Pixel size should now be 24:" << property.read().toInt();
\endcode
+
+The QtQuick 1 version of this class was named QDeclarativeProperty.
*/
/*!