diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-05-13 11:53:53 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-05-13 12:54:23 +0300 |
commit | e1f645ed1aa7bff8df8405344d423fc577899802 (patch) | |
tree | ab1090b2f6656bf5d0580f537a19a2d4dee7c9fb | |
parent | 9222ca22519748943d4ba00913b026d0985a90a0 (diff) |
scale according to screen
Change-Id: I85e6d207d26bcf5b1d821357ca8511636d5c5c7a
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
-rw-r--r-- | basicsuite/Qt5 Launch Presentation/main.qml | 25 |
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; } |