Change qqc2-desktop-style Units.fontMetrics property to a FontMetrics

This matches most other Kirigami.Units.fontMetrics properties
This commit is contained in:
Noah Davis 2021-05-26 17:36:56 -04:00
parent 29e06a6294
commit ba1bf63e01

View File

@ -150,8 +150,7 @@ QtObject {
/** /**
* metrics used by the default font * metrics used by the default font
*/ */
property variant fontMetrics: TextMetrics { property var fontMetrics: FontMetrics {
text: "M"
function roundedIconSize(size) { function roundedIconSize(size) {
if (size < 16) { if (size < 16) {
return size; return size;