From ee75812b5a547de88233312863cc94ba9a608e2b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 14 Apr 2017 13:05:01 -0700 Subject: QML UI: keep the fontMetric We reference it elsewhere. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index c92955f4d..30bb56ccc 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -38,9 +38,9 @@ Kirigami.ApplicationWindow { hidePassiveNotification(); } } -/* this shouldn't be needed anymore FontMetrics { id: fontMetrics + /* this shouldn't be needed anymore Component.onCompleted: { if (Math.round(rootItem.width / Kirigami.Units.gridUnit) < 20) { fontMetrics.font.pointSize = fontMetrics.font.pointSize * 2 / 3 @@ -48,8 +48,8 @@ Kirigami.ApplicationWindow { console.log("Reduce font size for narrow screens: " + fontMetrics.font.pointSize) } } + */ } -*/ visible: false // TODO: Verify where the opacity went to. -- cgit v1.2.3-70-g09d2