diff options
author | Jonas Karlsson <jonas.karlsson@qt.io> | 2020-08-05 10:47:33 +0200 |
---|---|---|
committer | Jonas Karlsson <jonas.karlsson@qt.io> | 2020-08-28 07:26:54 +0200 |
commit | 3558704ed5c3d2c6dc6d024dfa454997469ca75f (patch) | |
tree | 84fe1b1d8314a389b480b7e720574573c3bd2083 /src/plugins | |
parent | eb98bed4e76bb0fa6bad8474f2f370334cb70f6c (diff) |
Use OpenType font weights
Task-number: QTBUG-42248
Change-Id: Icdb301b27d6699c2b842c4563fbef9df73c23cbc
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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) |