aboutsummaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/examples/declarative/cppextensions
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-03 18:56:26 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:02 -0300
commit3798c8718c277d856562829d8326bb7cced0d84a (patch)
treef82e68bbf5e725503ad1e048bd3ae179974e4e21 /doc/codesnippets/examples/declarative/cppextensions
parent11042fdbaac58bbab03eb76d849186796cb30c44 (diff)
More code snippets ported to Python.
Diffstat (limited to 'doc/codesnippets/examples/declarative/cppextensions')
-rw-r--r--doc/codesnippets/examples/declarative/cppextensions/imageprovider/imageprovider-example.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/codesnippets/examples/declarative/cppextensions/imageprovider/imageprovider-example.qml b/doc/codesnippets/examples/declarative/cppextensions/imageprovider/imageprovider-example.qml
new file mode 100644
index 000000000..5f4c99b03
--- /dev/null
+++ b/doc/codesnippets/examples/declarative/cppextensions/imageprovider/imageprovider-example.qml
@@ -0,0 +1,9 @@
+import QtQuick 1.0
+import "ImageProviderCore" // import the plugin that registers the color image provider
+
+//![0]
+Column {
+ Image { source: "image://colors/yellow" }
+ Image { source: "image://colors/red" }
+}
+//![0]