summaryrefslogtreecommitdiffstats
path: root/doc/src/qmlapp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-11-04 09:14:38 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-11-06 12:22:25 +0100
commitf10caac22591033336bcacd90fac3343a1f44e3b (patch)
treed335968d098cda38cfa7e07059a9934ad8705cb2 /doc/src/qmlapp
parentd4af8cd4c7ab4c05f70c09c396990b6f2f869763 (diff)
Minor update in QML app porting guide for font weight
Since the QFont::setWeight() has now been changed to take an enum instead of an int, it is inaccurate to say we have API parity because they both use ints. Instead, we should say that we have API parity because it is possible to pass ints to both. Change-Id: I4de2fab69dfe9bc647c914c3ddc7fc03074ae9dd Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'doc/src/qmlapp')
-rw-r--r--doc/src/qmlapp/porting.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/qmlapp/porting.qdoc b/doc/src/qmlapp/porting.qdoc
index b0b05eca9..af3c82c7f 100644
--- a/doc/src/qmlapp/porting.qdoc
+++ b/doc/src/qmlapp/porting.qdoc
@@ -37,8 +37,8 @@ your code to be compatible.
\section1 Changed type of font.weight
The type of \c font.weight has been changed to \c int. The pre-defined weight classes still
exist, but it is now possible to use arbitrary integers to select fonts which do not
-match any of these weight classes. This ensures parity with the C++ API, in which weight
-has always been expressed by an \c int.
+match any of these weight classes. This ensures parity with the C++ API, where it has
+always been possible to express the font weight as an arbitrary integer.
Most code will be unaffected by this, except in the case where an implicit conversion
from a string to enum value was used.