QML/Hvac: Do not hard-code window size 30/24830/1
authorMarius Vlad <marius.vlad@collabora.com>
Tue, 21 Jan 2020 23:12:31 +0000 (01:12 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 24 Jun 2020 14:15:13 +0000 (17:15 +0300)
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I86e660d40c4387a64fe44cc49f0dfe308923a50e

app/HVAC.qml

index 8aa88c1..1a39167 100644 (file)
@@ -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: Screen.width
+        height: Screen.height
+        scale: 1
 
        ColumnLayout {
                anchors.fill: parent