diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-02 12:50:02 +0000 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-02 12:50:02 +0000 |
commit | 80ea6c4c0fe95efda049410fe290602982ba388c (patch) | |
tree | 01cc981d104f61c66e0c108d657d0524c54b6ad7 /app/Radio.qml | |
parent | 491b4c3aab9a42af17dc1bcf0889751694069dd9 (diff) |
Improve output of multiple screen resolution
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: I7532f5df390d380e8dac00519af0943b342ad31c
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'app/Radio.qml')
-rw-r--r-- | app/Radio.qml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/Radio.qml b/app/Radio.qml index f812af1..894b9a3 100644 --- a/app/Radio.qml +++ b/app/Radio.qml @@ -24,6 +24,9 @@ import 'api' as API ApplicationWindow { id: root + width: container.width * container.scale + height: container.height * container.scale + API.Binding { id: radio @@ -37,6 +40,13 @@ ApplicationWindow { } } + Item { + id: container + anchors.centerIn: parent + width: 1080 + height: 1487 + scale: screenInfo.scale_factor() + ColumnLayout { anchors.fill: parent Item { @@ -64,7 +74,7 @@ ApplicationWindow { ColumnLayout { anchors.fill: parent - anchors.margins: root.width * 0.02 + anchors.margins: container.width * 0.02 Item { Layout.fillWidth: true Layout.fillHeight: true @@ -259,3 +269,4 @@ ApplicationWindow { } } } +} |