diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-04-04 09:08:13 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-04-19 08:25:46 +0200 |
commit | 6e909fbbc5d1e01a0ebb7772da20018b4a3cf9ae (patch) | |
tree | 0bb63ba21247253f120540e204e8f00142088c0e | |
parent | 4c4f4c5ca2663234bb987c9dc8ff0f001e38d31e (diff) |
Better rotation code for examples
Change-Id: I73f617ebf909492009c776bbd8cd03ac80ae75cb
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
-rw-r--r-- | examples/animatedbackground/SlideDeckRotated.qml | 13 | ||||
-rw-r--r-- | examples/customtransition/SlideDeckRotated.qml | 13 | ||||
-rw-r--r-- | examples/tutorial/SlideDeckRotated.qml | 13 |
3 files changed, 24 insertions, 15 deletions
diff --git a/examples/animatedbackground/SlideDeckRotated.qml b/examples/animatedbackground/SlideDeckRotated.qml index ef6cfee..1870982 100644 --- a/examples/animatedbackground/SlideDeckRotated.qml +++ b/examples/animatedbackground/SlideDeckRotated.qml @@ -44,14 +44,17 @@ import QtQuick 2.0 Item { - height: 640 - width: 360 + id: root + + height: 1280 + width: 720 + Item { rotation: 90 SlideDeck { - y: -360 - width: 640 - height: 360 + y: - root.width + width: root.height + height: root.width } } } diff --git a/examples/customtransition/SlideDeckRotated.qml b/examples/customtransition/SlideDeckRotated.qml index ef6cfee..1870982 100644 --- a/examples/customtransition/SlideDeckRotated.qml +++ b/examples/customtransition/SlideDeckRotated.qml @@ -44,14 +44,17 @@ import QtQuick 2.0 Item { - height: 640 - width: 360 + id: root + + height: 1280 + width: 720 + Item { rotation: 90 SlideDeck { - y: -360 - width: 640 - height: 360 + y: - root.width + width: root.height + height: root.width } } } diff --git a/examples/tutorial/SlideDeckRotated.qml b/examples/tutorial/SlideDeckRotated.qml index ef6cfee..1870982 100644 --- a/examples/tutorial/SlideDeckRotated.qml +++ b/examples/tutorial/SlideDeckRotated.qml @@ -44,14 +44,17 @@ import QtQuick 2.0 Item { - height: 640 - width: 360 + id: root + + height: 1280 + width: 720 + Item { rotation: 90 SlideDeck { - y: -360 - width: 640 - height: 360 + y: - root.width + width: root.height + height: root.width } } } |