summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-15 09:10:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-30 07:52:57 +0200
commit8339384eeb62198465f2c869a244d40f0ed2e288 (patch)
treefc23c61737a25ffcc9b762b067ac5219fecf5bfd
parent3d871ef0de72c175df555d68de09d551c307490e (diff)
downloadsubsurface-8339384eeb62198465f2c869a244d40f0ed2e288.tar.gz
mobile-widgets/qml: move fontMetrics to ThemeTest
fontMetrics is no longer used in production code, but still in the theme test page. Isolate fontMetrics in ThemeTest page. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--mobile-widgets/qml/ThemeTest.qml4
-rw-r--r--mobile-widgets/qml/main.qml3
2 files changed, 4 insertions, 3 deletions
diff --git a/mobile-widgets/qml/ThemeTest.qml b/mobile-widgets/qml/ThemeTest.qml
index 583a7fbc5..24b178b73 100644
--- a/mobile-widgets/qml/ThemeTest.qml
+++ b/mobile-widgets/qml/ThemeTest.qml
@@ -11,6 +11,10 @@ Kirigami.Page {
title: "Theme Information"
background: Rectangle { color: subsurfaceTheme.backgroundColor }
+ FontMetrics {
+ id: fontMetrics
+ }
+
GridLayout {
id: themetest
columns: 2
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index be6cfaff2..e4bb1e8ef 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -46,9 +46,6 @@ Kirigami.ApplicationWindow {
hidePassiveNotification();
}
}
- FontMetrics {
- id: fontMetrics
- }
visible: false
BusyIndicator {