mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:33:24 +00:00
QML UI: keep the fontMetric
We reference it elsewhere. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1246324897
commit
ee75812b5a
1 changed files with 2 additions and 2 deletions
|
@ -38,9 +38,9 @@ Kirigami.ApplicationWindow {
|
||||||
hidePassiveNotification();
|
hidePassiveNotification();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* this shouldn't be needed anymore
|
|
||||||
FontMetrics {
|
FontMetrics {
|
||||||
id: fontMetrics
|
id: fontMetrics
|
||||||
|
/* this shouldn't be needed anymore
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (Math.round(rootItem.width / Kirigami.Units.gridUnit) < 20) {
|
if (Math.round(rootItem.width / Kirigami.Units.gridUnit) < 20) {
|
||||||
fontMetrics.font.pointSize = fontMetrics.font.pointSize * 2 / 3
|
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)
|
console.log("Reduce font size for narrow screens: " + fontMetrics.font.pointSize)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
visible: false
|
visible: false
|
||||||
|
|
||||||
// TODO: Verify where the opacity went to.
|
// TODO: Verify where the opacity went to.
|
||||||
|
|
Loading…
Add table
Reference in a new issue