aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2012-04-18 14:21:46 +1000
committerQt by Nokia <qt-info@nokia.com>2012-04-23 11:14:36 +0200
commit6fe0263b25475199808fc5633fbcacc06162af2a (patch)
tree98703d875500b195de29023d3697773f38e269da /src/imports
parent42e93ffffa23b466f6641f86de18e6a7dd71166c (diff)
Doc Fix
More emphasis on what imports are needed for specialty elements. Change-Id: Ia24ac97bb77ed57c313a5120b0fbd02b6fcaa4a8 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/xmllistmodel/qqmlxmllistmodel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp
index 22072dc75a..e95fd26f79 100644
--- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp
+++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp
@@ -599,6 +599,12 @@ void QQuickXmlListModelPrivate::clear_role(QQmlListProperty<QQuickXmlListModelRo
\ingroup qml-working-with-data
\brief The XmlListModel element is used to specify a read-only model using XPath expressions.
+
+ To use this element, you will need to import the module with the following line:
+ \code
+ import QtQuick.XmlListModel 2.0
+ \endcode
+
XmlListModel is used to create a read-only model from XML data. It can be used as a data source
for view elements (such as ListView, PathView, GridView) and other elements that interact with model
data (such as \l Repeater).
@@ -626,6 +632,7 @@ void QQuickXmlListModelPrivate::clear_role(QQmlListProperty<QQuickXmlListModelRo
\qml
import QtQuick 2.0
+ import QtQuick.XmlListModel 2.0
XmlListModel {
id: xmlModel