From bb8049fd3dceea482304076b30ef8cbe574e308f Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Wed, 9 Apr 2014 14:31:19 +0200 Subject: [about-b2qt] Use Screen element for setting width/height Task-number: QTRD-3032 Change-Id: Ifdd27fe756f120bcb78093626908b04a62065d3a Reviewed-by: Laszlo Agocs --- basicsuite/about-b2qt/main.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'basicsuite') diff --git a/basicsuite/about-b2qt/main.qml b/basicsuite/about-b2qt/main.qml index 5c5c6df..694ba50 100644 --- a/basicsuite/about-b2qt/main.qml +++ b/basicsuite/about-b2qt/main.qml @@ -40,12 +40,13 @@ ****************************************************************************/ import QtQuick 2.0 import QtQuick.Particles 2.0 +import QtQuick.Window 2.1 Item { id: root - width: 1280 - height: 800 + width : Screen.height > Screen.width ? Screen.height : Screen.width + height : Screen.height > Screen.width ? Screen.width : Screen.height // Rectangle { // anchors.fill: parent -- cgit v1.2.3