Code Review
/
apps
/
hvac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
HVAC.qml: Allow scaling at lower resolutions
[apps/hvac.git]
/
app
/
HVAC.qml
diff --git
a/app/HVAC.qml
b/app/HVAC.qml
index
8aa88c1
..
dbab358
100644
(file)
--- 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 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
import AGL.Demo.Controls 1.0
import Translator 1.0
@@
-40,9
+41,10
@@
ApplicationWindow {
Item {
id: container
anchors.centerIn: parent
Item {
id: container
anchors.centerIn: parent
- width: 1080
- height: 1487
- scale: screenInfo.scale_factor()
+
+ height: 1920 - 218 - 215
+ width: 1080
+ scale: (Screen.width / 1080.0)
ColumnLayout {
anchors.fill: parent
ColumnLayout {
anchors.fill: parent