diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-01 00:19:49 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-01 00:19:49 (GMT) |
commit | afbf5a144f40cacce0673292d34eda3086a3745e (patch) | |
tree | adaa42893b840978b402ee0a33d6e0c75d4b8873 /src | |
parent | 3e3e22b2eb1ac2cc3fa33de3810962cd95be9988 (diff) | |
download | Qt-afbf5a144f40cacce0673292d34eda3086a3745e.zip Qt-afbf5a144f40cacce0673292d34eda3086a3745e.tar.gz Qt-afbf5a144f40cacce0673292d34eda3086a3745e.tar.bz2 |
Format conversion.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/fx/qfximage.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/declarative/fx/qfximage.cpp b/src/declarative/fx/qfximage.cpp index dded48c..1361d68 100644 --- a/src/declarative/fx/qfximage.cpp +++ b/src/declarative/fx/qfximage.cpp @@ -68,28 +68,27 @@ QML_DEFINE_TYPE(QFxImage,Image); \o \image declarative-qtlogo1.png \o Untransformed \code - <Image src="pics/qtlogo.png"/> + Image { source: "pics/qtlogo.png" } \endcode \row \o \image declarative-qtlogo2.png \o Stretched \code - <Image width="160" height="160" src="pics/qtlogo.png"/> + Image { width: 160; height: 160; source: "pics/qtlogo.png" } \endcode \row \o \image declarative-qtlogo4.png \o Grid-scaled \code - <Image scaleGrid.left="20" scaleGrid.right="10" - scaleGrid.top="14" scaleGrid.bottom="14" - width="160" height="160" src="pics/qtlogo.png"/> + Image { scaleGrid.left: 20; scaleGrid.right: 10 + scaleGrid.top: 14; scaleGrid.bottom: 14 + width: 160; height: 160; source: "pics/qtlogo.png" } \endcode \row \o \image declarative-qtlogo3.png \o Tiled \code - <Image tile="true" - width="160" height="160" src="pics/qtlogo.png"/> + Image { tile: true; width: 160; height: 160; source: "pics/qtlogo.png" } \endcode \endtable */ @@ -103,7 +102,7 @@ QML_DEFINE_TYPE(QFxImage,Image); Example: \code - <Image src="pics/star.png"/> + Image { source: "pics/star.png" } \endcode A QFxImage object can be instantiated in Qml using the tag \l Image. @@ -200,11 +199,11 @@ QFxScaleGrid *QFxImage::scaleGrid() of unscaled tiles, clipped to the size of the Image. \code - <Item> - <Image src="tile.png" /> - <Image x="80" width="100" height="100" src="tile.png" /> - <Image x="190" width="100" height="100" tile="true" src="tile.png" /> - </Item> + Item { + Image { source: "tile.png" } + Image { x: 80; width: 100; height: 100; src: "tile.png" } + Image { x: 190; width: 100; height: 100; tile: true; src: "tile.png" } + } \endcode \image declarative-image_tile.png |