QML UI: keep the fontMetric

We reference it elsewhere.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-04-14 13:05:01 -07:00
parent 1246324897
commit ee75812b5a

View file

@ -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.