summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-07-08 03:19:22 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-07-08 04:07:39 (GMT)
commita258456bcb35ec4211751a702ea94a1881d82a07 (patch)
treeca7dc7ded5b23aac34247694a06a9bf910e2384e /doc/src
parent3d8db76427efd74e1668b2743381d724453da5d6 (diff)
downloadQt-a258456bcb35ec4211751a702ea94a1881d82a07.zip
Qt-a258456bcb35ec4211751a702ea94a1881d82a07.tar.gz
Qt-a258456bcb35ec4211751a702ea94a1881d82a07.tar.bz2
Extend QDeclarativeImageProvider to support QPixmap loading and
synchronous loading of QImages. (QPixmaps can only be created in the main thread so they will always be loaded synchronously). This changes request() to requestImage() and adds requestPixmap() for pixmap support. Task-number: QTBUG-11989
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/declarative/pics/imageprovider.pngbin0 -> 420 bytes
-rw-r--r--doc/src/examples/qml-examples.qdoc6
-rw-r--r--doc/src/images/qml-imageprovider-example.pngbin0 -> 2259 bytes
3 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/declarative/pics/imageprovider.png b/doc/src/declarative/pics/imageprovider.png
new file mode 100644
index 0000000..422103c
--- /dev/null
+++ b/doc/src/declarative/pics/imageprovider.png
Binary files differ
diff --git a/doc/src/examples/qml-examples.qdoc b/doc/src/examples/qml-examples.qdoc
index dec5441..4ad11d9 100644
--- a/doc/src/examples/qml-examples.qdoc
+++ b/doc/src/examples/qml-examples.qdoc
@@ -214,8 +214,10 @@
\title C++ Extensions: Image Provider
\example declarative/cppextensions/imageprovider
- This examples shows how to use QDeclarativeImageProvider to serve images asynchronously
- into a QML item.
+ This examples shows how to use QDeclarativeImageProvider to serve images
+ to QML image elements.
+
+ \image qml-imageprovider-example.png
*/
/*!
diff --git a/doc/src/images/qml-imageprovider-example.png b/doc/src/images/qml-imageprovider-example.png
new file mode 100644
index 0000000..e82548a
--- /dev/null
+++ b/doc/src/images/qml-imageprovider-example.png
Binary files differ