From 6fe0263b25475199808fc5633fbcacc06162af2a Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Wed, 18 Apr 2012 14:21:46 +1000 Subject: [PATCH] Doc Fix More emphasis on what imports are needed for specialty elements. Change-Id: Ia24ac97bb77ed57c313a5120b0fbd02b6fcaa4a8 Reviewed-by: Martin Jones --- doc/src/particles/particles.qdoc | 11 ++++++++++- src/imports/xmllistmodel/qqmlxmllistmodel.cpp | 7 +++++++ src/quick/items/qquickcanvas.cpp | 7 +++++++ src/quick/items/qquickscreen.cpp | 7 +++++++ 4 files changed, 31 insertions(+), 1 deletion(-) diff --git a/doc/src/particles/particles.qdoc b/doc/src/particles/particles.qdoc index d51bcdf..be7d65b 100644 --- a/doc/src/particles/particles.qdoc +++ b/doc/src/particles/particles.qdoc @@ -31,7 +31,10 @@ \brief Elements for the Qt Quick particle system - This QML module contains a particle system for Qt Quick. + This QML module contains a particle system for Qt Quick. To use these elements, you will need to import the module with the following line: + \code + import QtQuick.Particles 2.0 + \endcode For a simple overview of how the system can be used, see \l{qml-particlesystem.html}{Using the Qt Quick Particle System}. @@ -44,6 +47,12 @@ \inqmlmodule QtQuick.Particles 2 \title Using the Qt Quick Particle System + + Note that to use elements from the particles module, you will need to import the types with the following line: + \code + import QtQuick.Particles 2.0 + \endcode + \section1 The ParticleSystem This particle system contains four main types of QML Elements: ParticleSystem, Painters, Emitters and Affectors. diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp index 22072dc..e95fd26 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp +++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp @@ -599,6 +599,12 @@ void QQuickXmlListModelPrivate::clear_role(QQmlListProperty