Commit 3fc77c34 authored by Matej Starc's avatar Matej Starc Committed by Devin Lin
Browse files

Use FontMetrics in MetricsGallery

parent 88e9e58d
Pipeline #253483 passed with stage
in 2 minutes and 21 seconds
......@@ -33,6 +33,10 @@ Kirigami.ScrollablePage {
columns: 2
anchors.margins: Kirigami.Units.gridUnit / 2
FontMetrics {
id: fontMetrics
}
Kirigami.Heading {
id: h1
text: qsTr("Heading 1")
......@@ -83,14 +87,14 @@ Kirigami.ScrollablePage {
text: "FontMetrics pointSize:"
}
QQC2.Label {
text: Kirigami.Units.fontMetrics.font.pointSize
text: fontMetrics.font.pointSize
}
QQC2.Label {
text: "FontMetrics pixelSize:"
}
QQC2.Label {
text: Number(Kirigami.Units.fontMetrics.font.pixelSize).toFixed(2)
text: Number(fontMetrics.font.pixelSize).toFixed(2)
}
QQC2.Label {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment