From 3558704ed5c3d2c6dc6d024dfa454997469ca75f Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Wed, 5 Aug 2020 10:47:33 +0200 Subject: Use OpenType font weights Task-number: QTBUG-42248 Change-Id: Icdb301b27d6699c2b842c4563fbef9df73c23cbc Reviewed-by: Qt CI Bot Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/platformthemes') diff --git a/src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp b/src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp index 65564b59a1..258c4305ff 100644 --- a/src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp +++ b/src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp @@ -575,8 +575,7 @@ static QFont qt_fontFromString(const QString &name) if (!family.isEmpty()) font.setFamily(family); - const int weight = pango_font_description_get_weight(desc); - font.setWeight(QPlatformFontDatabase::weightFromInteger(weight)); + font.setWeight(QFont::Weight(pango_font_description_get_weight(desc))); PangoStyle style = pango_font_description_get_style(desc); if (style == PANGO_STYLE_ITALIC) -- cgit v1.2.3