diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-02 12:03:22 +0000 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-02 12:03:22 +0000 |
commit | 1c58ba66da8feae72232ddc0a849bdebc3605fd5 (patch) | |
tree | 4e06d74b4bee058828d4a9582c17192c3b2a4761 /app | |
parent | 62f4af4df6c5f5ba16b5277e8c59890d6f771746 (diff) |
Improve output of multiple screen resolutionguppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder_5.99.3flounder/5.99.6flounder/5.99.5flounder/5.99.4flounder/5.99.36.90.05.99.65.99.55.99.45.99.3
To improve output on various monitor with various resolution,
use scale_factor from WM to fit various screen resolution.
Bug-AGL: SPEC-1568, SPEC-1569, SPEC-1611
Change-Id: I5159184b21f13138f520aa0b9c91b58544ac96c5
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'app')
-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 } } } } +} |