summaryrefslogtreecommitdiffstats
path: root/basicsuite
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-05-13 11:53:53 +0200
committerGunnar Sletta <gunnar.sletta@digia.com>2013-05-13 12:54:23 +0300
commite1f645ed1aa7bff8df8405344d423fc577899802 (patch)
treeab1090b2f6656bf5d0580f537a19a2d4dee7c9fb /basicsuite
parent9222ca22519748943d4ba00913b026d0985a90a0 (diff)
scale according to screen
Change-Id: I85e6d207d26bcf5b1d821357ca8511636d5c5c7a Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'basicsuite')
-rw-r--r--basicsuite/Qt5 Launch Presentation/main.qml25
1 files changed, 20 insertions, 5 deletions
diff --git a/basicsuite/Qt5 Launch Presentation/main.qml b/basicsuite/Qt5 Launch Presentation/main.qml
index 8ebd802..627ec48 100644
--- a/basicsuite/Qt5 Launch Presentation/main.qml
+++ b/basicsuite/Qt5 Launch Presentation/main.qml
@@ -38,11 +38,26 @@
**
****************************************************************************/
-DemoMain {
+import QtQuick 2.0
- width: 854
- height: 480
+Item {
+ id: root
+
+ width: 1280
+ height: 720
+
+ property real widthFactor: root.width / root.height;
+
+ DemoMain {
+ width: 720 * root.widthFactor
+ height: 720
+
+ anchors.centerIn: parent
+
+ scale: root.height / height
+
+ useDropShadow: false;
+ useSimpleGradient: true;
+ }
- useDropShadow: false;
- useSimpleGradient: true;
}