Doc: Expand example (importing multiple modules into 1 namespace)
authorSze Howe Koh <szehowe.koh@gmail.com>
Wed, 24 Apr 2013 14:31:41 +0000 (22:31 +0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 25 Apr 2013 00:09:09 +0000 (02:09 +0200)
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>
src/qml/doc/snippets/qml/imports/merged-named-imports.qml

index c37ac5e..65e2bfd 100644 (file)
 //! [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]
+