summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-10-12 06:29:55 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-10-12 06:29:55 (GMT)
commit949e21cdafeec0c0e4ac632ebbf21767479f04e5 (patch)
treea550e663cbca927b421b3e10ea1f0bef2e60fe69
parentb30731cea6f99ed3f2d358399f57fe3eb5739c17 (diff)
downloadQt-949e21cdafeec0c0e4ac632ebbf21767479f04e5.zip
Qt-949e21cdafeec0c0e4ac632ebbf21767479f04e5.tar.gz
Qt-949e21cdafeec0c0e4ac632ebbf21767479f04e5.tar.bz2
use aliases when possible
-rw-r--r--examples/declarative/border-image/MyBorderImage.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/border-image/MyBorderImage.qml b/examples/declarative/border-image/MyBorderImage.qml
index d64bfb2..9eb1270 100644
--- a/examples/declarative/border-image/MyBorderImage.qml
+++ b/examples/declarative/border-image/MyBorderImage.qml
@@ -1,9 +1,10 @@
import Qt 4.6
Item {
- property var horizontalMode : BorderImage.Stretch
- property var verticalMode : BorderImage.Stretch
+ property alias horizontalMode: image.horizontalTileMode
+ property alias verticalMode: image.verticalTileMode
property alias source: image.source
+
property int minWidth
property int minHeight
property int maxWidth
@@ -12,6 +13,7 @@ Item {
id: container
width: 240; height: 240
+
BorderImage {
id: image; x: container.width / 2 - width / 2; y: container.height / 2 - height / 2
@@ -27,8 +29,6 @@ Item {
NumberAnimation { from: container.maxHeight; to: container.minHeight; duration: 2000; easing: "easeInOutQuad" }
}
- horizontalTileMode: container.horizontalMode
- verticalTileMode: container.verticalMode
border.top: container.margin
border.left: container.margin
border.bottom: container.margin