summaryrefslogtreecommitdiffstats
path: root/examples/declarative/border-image/borders.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-08-06 08:31:37 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-08-06 08:31:37 (GMT)
commita5b6b744b5a06bcd8dc101768466d202f427b2e7 (patch)
tree116fbad7e3eee6590749c6339dcd19efa2eded6b /examples/declarative/border-image/borders.qml
parentc0525981ffb291fc281a2daaafa290d4ff5917f4 (diff)
downloadQt-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.qml18
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"
+ }
+}