aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickglobal.cpp
diff options
context:
space:
mode:
authorJonas Karlsson <[email protected]>2020-08-06 16:57:50 +0200
committerJonas Karlsson <[email protected]>2020-08-28 18:33:08 +0200
commitde0c76db907ffd34b10eeda4a2d1d52c107ef4bd (patch)
treec49a4a6045971f31c36adbf69b886025ccabd2ee /src/quick/util/qquickglobal.cpp
parentf1cc8f684cf7a72c70dfe4d9c1ca0a03ad0030a9 (diff)
Use OpenType font weights
Task-number: QTBUG-42248 Change-Id: Ib26d4945307b630b054e270b3213e1c9ad0d5357 Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Diffstat (limited to 'src/quick/util/qquickglobal.cpp')
-rw-r--r--src/quick/util/qquickglobal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/util/qquickglobal.cpp b/src/quick/util/qquickglobal.cpp
index 817977eb3b..fb1645803f 100644
--- a/src/quick/util/qquickglobal.cpp
+++ b/src/quick/util/qquickglobal.cpp
@@ -528,7 +528,7 @@ public:
if (ok) *ok = true;
}
if (vweight->isInt32()) {
- retn.setWeight(vweight->integerValue());
+ retn.setWeight(QFont::Weight(vweight->integerValue()));
if (ok) *ok = true;
}
if (vwspac->isNumber()) {