From: Sze Howe Koh Date: Wed, 24 Apr 2013 14:31:41 +0000 (+0800) Subject: Doc: Expand example (importing multiple modules into 1 namespace) X-Git-Tag: upstream/5.2.1~798^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f823842afba3c3bf023ad68ed46761cfc9beadd2;p=platform%2Fupstream%2Fqtdeclarative.git 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 Reviewed-by: Alan Alpert --- 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 c37ac5e..65e2bfd 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] +