summaryrefslogtreecommitdiffstats
path: root/app/Settings.qml
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-08-02 09:51:52 +0000
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-08-02 09:51:52 +0000
commitb32354d22017b39bb40ef8e292d24c5ed7b47013 (patch)
treedce3b0ac34b63834f5dc8dcdd9e78d9a822673e9 /app/Settings.qml
parent0a5f2088affd1a92a38b067618585c57730b0646 (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: Ic0b8538259a4e9949caa099cff475935af609d09 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'app/Settings.qml')
-rw-r--r--app/Settings.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/Settings.qml b/app/Settings.qml
index b3a622a..256467b 100644
--- a/app/Settings.qml
+++ b/app/Settings.qml
@@ -26,12 +26,21 @@ import 'version'
ApplicationWindow {
id: root
+ width: container.width * container.scale
+ height: container.height * container.scale
onVisibleChanged: {
if (!visible)
stack.pop(settings)
}
+ Item {
+ id: container
+ anchors.centerIn: parent
+ width: 1080
+ height: 1487
+ scale: screenInfo.scale_factor()
+
StackView {
id: stack
anchors.fill: parent
@@ -66,3 +75,4 @@ ApplicationWindow {
Version {}
}
}
+}