diff options
Diffstat (limited to 'app/Dashboard.qml')
-rw-r--r-- | app/Dashboard.qml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/Dashboard.qml b/app/Dashboard.qml index 41ffbf8..496062b 100644 --- a/app/Dashboard.qml +++ b/app/Dashboard.qml @@ -24,6 +24,9 @@ import Translator 1.0 ApplicationWindow { id: root + width: container.width * container.scale + height: container.height * container.scale + Translator { id: translator } @@ -89,6 +92,13 @@ ApplicationWindow { active: true } + Item { + id: container + anchors.centerIn: parent + width: 1080 + height: 1487 + scale: screenInfo.scale_factor() + Label { id: speed anchors.left: parent.left @@ -278,9 +288,13 @@ ApplicationWindow { Button { text: model.modelData - onClicked: translator.language = model.modelData + onClicked: { + translator.language = model.modelData + console.log ("Scale = " + screenInfo.scale_factor()) + } Layout.fillWidth: true } } } } +} |