diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-10-30 01:50:47 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-10-30 01:50:47 (GMT) |
commit | 72932c6683729071c1acb3f4832c5dc53a561bdd (patch) | |
tree | 3faaf9cae46f67e52108beb5902cab9c272b155e /examples/declarative/border-image/content | |
parent | ff1a4e75056b200b7eb9117ddfd5b6cd27f4e92e (diff) | |
download | Qt-72932c6683729071c1acb3f4832c5dc53a561bdd.zip Qt-72932c6683729071c1acb3f4832c5dc53a561bdd.tar.gz Qt-72932c6683729071c1acb3f4832c5dc53a561bdd.tar.bz2 |
cleanup
Diffstat (limited to 'examples/declarative/border-image/content')
-rw-r--r-- | examples/declarative/border-image/content/MyBorderImage.qml | 37 | ||||
-rw-r--r-- | examples/declarative/border-image/content/bw.png | bin | 0 -> 1357 bytes | |||
-rw-r--r-- | examples/declarative/border-image/content/colors-round.sci | 7 | ||||
-rw-r--r-- | examples/declarative/border-image/content/colors-stretch.sci | 5 | ||||
-rw-r--r-- | examples/declarative/border-image/content/colors.png | bin | 0 -> 1655 bytes |
5 files changed, 49 insertions, 0 deletions
diff --git a/examples/declarative/border-image/content/MyBorderImage.qml b/examples/declarative/border-image/content/MyBorderImage.qml new file mode 100644 index 0000000..9eb1270 --- /dev/null +++ b/examples/declarative/border-image/content/MyBorderImage.qml @@ -0,0 +1,37 @@ +import Qt 4.6 + +Item { + property alias horizontalMode: image.horizontalTileMode + property alias verticalMode: image.verticalTileMode + property alias source: image.source + + property int minWidth + property int minHeight + property int maxWidth + property int maxHeight + property int margin + + id: container + width: 240; height: 240 + + BorderImage { + id: image; x: container.width / 2 - width / 2; y: container.height / 2 - height / 2 + + width: SequentialAnimation { + running: true; repeat: true + NumberAnimation { from: container.minWidth; to: container.maxWidth; duration: 2000; easing: "easeInOutQuad"} + NumberAnimation { from: container.maxWidth; to: container.minWidth; duration: 2000; easing: "easeInOutQuad" } + } + + height: SequentialAnimation { + running: true; repeat: true + NumberAnimation { from: container.minHeight; to: container.maxHeight; duration: 2000; easing: "easeInOutQuad"} + NumberAnimation { from: container.maxHeight; to: container.minHeight; duration: 2000; easing: "easeInOutQuad" } + } + + border.top: container.margin + border.left: container.margin + border.bottom: container.margin + border.right: container.margin + } +} diff --git a/examples/declarative/border-image/content/bw.png b/examples/declarative/border-image/content/bw.png Binary files differnew file mode 100644 index 0000000..486eaae --- /dev/null +++ b/examples/declarative/border-image/content/bw.png diff --git a/examples/declarative/border-image/content/colors-round.sci b/examples/declarative/border-image/content/colors-round.sci new file mode 100644 index 0000000..506f6f5 --- /dev/null +++ b/examples/declarative/border-image/content/colors-round.sci @@ -0,0 +1,7 @@ +border.left:30 +border.top:30 +border.right:30 +border.bottom:30 +horizontalTileRule:Round +verticalTileRule:Round +source:colors.png diff --git a/examples/declarative/border-image/content/colors-stretch.sci b/examples/declarative/border-image/content/colors-stretch.sci new file mode 100644 index 0000000..e4989a7 --- /dev/null +++ b/examples/declarative/border-image/content/colors-stretch.sci @@ -0,0 +1,5 @@ +border.left:30 +border.top:30 +border.right:30 +border.bottom:30 +source:colors.png diff --git a/examples/declarative/border-image/content/colors.png b/examples/declarative/border-image/content/colors.png Binary files differnew file mode 100644 index 0000000..dfb62f3 --- /dev/null +++ b/examples/declarative/border-image/content/colors.png |