aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc
diff options
context:
space:
mode:
authorSze Howe Koh <szehowe.koh@gmail.com>2013-04-24 22:31:41 +0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-25 02:09:09 +0200
commitf823842afba3c3bf023ad68ed46761cfc9beadd2 (patch)
treef516973c4d160184890d21e6e857b1d62a7a9c18 /src/qml/doc
parent3ca95a92835b92c9aeb6abbb7a26de73e3170ece (diff)
Doc: Expand example (importing multiple modules into 1 namespace)
Snippet is for the Qt QML "Import Statements" page. Show how to use the namespace to reference types from different modules Change-Id: I8c49703194a18657439afdef75e47ff7e97be653 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/qml/doc')
-rw-r--r--src/qml/doc/snippets/qml/imports/merged-named-imports.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/qml/doc/snippets/qml/imports/merged-named-imports.qml b/src/qml/doc/snippets/qml/imports/merged-named-imports.qml
index c37ac5e48d..65e2bfd4ce 100644
--- a/src/qml/doc/snippets/qml/imports/merged-named-imports.qml
+++ b/src/qml/doc/snippets/qml/imports/merged-named-imports.qml
@@ -41,7 +41,14 @@
//! [imports]
import QtQuick 2.0 as Project
import QtMultimedia 5.0 as Project
-//! [imports]
-Item {
+Project.Rectangle {
+ width: 100; height: 50
+
+ Project.Audio {
+ source: "music.wav"
+ autoPlay: true
+ }
}
+//! [imports]
+