diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-06 08:31:37 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-06 08:31:37 (GMT) |
commit | a5b6b744b5a06bcd8dc101768466d202f427b2e7 (patch) | |
tree | 116fbad7e3eee6590749c6339dcd19efa2eded6b /examples/declarative/border-image/borders.qml | |
parent | c0525981ffb291fc281a2daaafa290d4ff5917f4 (diff) | |
download | Qt-a5b6b744b5a06bcd8dc101768466d202f427b2e7.zip Qt-a5b6b744b5a06bcd8dc101768466d202f427b2e7.tar.gz Qt-a5b6b744b5a06bcd8dc101768466d202f427b2e7.tar.bz2 |
Add support for CSS-like horizontalTileRule and verticalTileRule to ScaleGrid.
* Simplify and improve QFxImage code by using qDrawBorderPixmap
* Add horizontalTileRule and verticalTileRule to .sci files
* Add example in example/declarative/border-image
Diffstat (limited to 'examples/declarative/border-image/borders.qml')
-rw-r--r-- | examples/declarative/border-image/borders.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/declarative/border-image/borders.qml b/examples/declarative/border-image/borders.qml new file mode 100644 index 0000000..a4a329b --- /dev/null +++ b/examples/declarative/border-image/borders.qml @@ -0,0 +1,18 @@ +import Qt 4.6 + +Rect { + id: Page + color: "white" + width: 520; height: 280 + + Image { + x: 20; y: 20; width: 230; height: 240 + smooth: true + source: "colors-stretch.sci" + } + Image { + x: 270; y: 20; width: 230; height: 240 + smooth: true + source: "colors-round.sci" + } +} |