diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-08-15 20:48:23 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-08-15 20:48:23 -0700 |
commit | cf4a4dd98b41c3a664a3d26500c81fbb5438a86b (patch) | |
tree | 4ad0e683cbec8d4bd5db68df2c3d1020ca4d28d7 /mobile-widgets | |
parent | 44aaab2611cf1b1269ed398826484d17087812d5 (diff) | |
download | subsurface-cf4a4dd98b41c3a664a3d26500c81fbb5438a86b.tar.gz |
QML UI: format numbers for Theme info
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/ThemeTest.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mobile-widgets/qml/ThemeTest.qml b/mobile-widgets/qml/ThemeTest.qml index e01edd9eb..8aae32a30 100644 --- a/mobile-widgets/qml/ThemeTest.qml +++ b/mobile-widgets/qml/ThemeTest.qml @@ -72,14 +72,14 @@ Kirigami.Page { text: "FontMetrics pixelSize:" } Kirigami.Label { - text: fm.height + text: Number(fm.height).toFixed(2) } Kirigami.Label { text: "FontMetrics devicePixelRatio:" } Kirigami.Label { - text: fm.height / fm.font.pointSize + text: Number(fm.height / fm.font.pointSize).toFixed(2) } Kirigami.Label { @@ -100,14 +100,14 @@ Kirigami.Page { text: "Pixel density:" } Text { - text: Screen.pixelDensity + text: Number(Screen.pixelDensity).toFixed(2) } Kirigami.Label { text: "Height of default font:" } Text { - text: font.pixelSize / Screen.pixelDensity + "mm" + text: Number(font.pixelSize / Screen.pixelDensity).toFixed(2) + "mm" } Kirigami.Label { |