summaryrefslogtreecommitdiffstats
path: root/examples/declarative/border-image/content/MyBorderImage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/border-image/content/MyBorderImage.qml')
-rw-r--r--examples/declarative/border-image/content/MyBorderImage.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/declarative/border-image/content/MyBorderImage.qml b/examples/declarative/border-image/content/MyBorderImage.qml
index f65f093..2573a14 100644
--- a/examples/declarative/border-image/content/MyBorderImage.qml
+++ b/examples/declarative/border-image/content/MyBorderImage.qml
@@ -1,6 +1,8 @@
import Qt 4.7
Item {
+ id: container
+
property alias horizontalMode: image.horizontalTileMode
property alias verticalMode: image.verticalTileMode
property alias source: image.source
@@ -11,11 +13,10 @@ Item {
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
+ id: image; anchors.centerIn: parent
SequentialAnimation on width {
loops: Animation.Infinite