X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2FHVAC.qml;h=4e27e2d744962b429269a843d83d9a9a1c79a32e;hb=50940a37ac8c8017f07e69e6b35ae16946bcbee0;hp=8aa88c146a4551379e0055a9169c0d6e8f456a1b;hpb=bba7642118e223492bf5a82eb3fed04a59e34c2c;p=apps%2Fhvac.git diff --git a/app/HVAC.qml b/app/HVAC.qml index 8aa88c1..4e27e2d 100644 --- a/app/HVAC.qml +++ b/app/HVAC.qml @@ -17,6 +17,7 @@ import QtQuick 2.6 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 +import QtQuick.Window 2.11 import AGL.Demo.Controls 1.0 import Translator 1.0 @@ -40,9 +41,9 @@ ApplicationWindow { Item { id: container anchors.centerIn: parent - width: 1080 - height: 1487 - scale: screenInfo.scale_factor() + width: Window.width + height: Window.height + scale: Window.scale ColumnLayout { anchors.fill: parent @@ -55,7 +56,7 @@ ApplicationWindow { source: './images/HMI_HVAC_Fan_Icon.svg' } Item { - width: container.width * 0.8 + width: 1080 * 0.8 Slider { id: fanSpeedSlider anchors.left: parent.left