diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-01-22 01:12:31 +0200 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-06-24 17:15:13 +0300 |
commit | 611a430a2457eed24cee182c073189653c55a793 (patch) | |
tree | eb5aaaaee40505aee745d58f3c1510f7927fbcff /app | |
parent | 63296ac63f93bef47835b815b4f3d8a30e16ba12 (diff) |
QML/Hvac: Do not hard-code window size
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I86e660d40c4387a64fe44cc49f0dfe308923a50e
Diffstat (limited to 'app')
-rw-r--r-- | app/HVAC.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/HVAC.qml b/app/HVAC.qml index 8aa88c1..1a39167 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: Screen.width + height: Screen.height + scale: 1 ColumnLayout { anchors.fill: parent |