From 6e909fbbc5d1e01a0ebb7772da20018b4a3cf9ae Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 4 Apr 2013 09:08:13 +0200 Subject: Better rotation code for examples Change-Id: I73f617ebf909492009c776bbd8cd03ac80ae75cb Reviewed-by: Alan Alpert --- examples/animatedbackground/SlideDeckRotated.qml | 13 ++++++++----- examples/customtransition/SlideDeckRotated.qml | 13 ++++++++----- 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 } } } -- cgit v1.2.3