From 8339384eeb62198465f2c869a244d40f0ed2e288 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 15 Jan 2020 09:10:46 +0100 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/ThemeTest.qml | 4 ++++ mobile-widgets/qml/main.qml | 3 --- 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 {