diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2014-10-22 17:14:29 +0200 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2014-12-12 06:59:46 +0100 |
commit | 517da68893be9e6d97c7993922c573de9560604d (patch) | |
tree | 9da6027604c97023fd6cacc3114c2f2fd43dd26f /src/gui/text/qfont.cpp | |
parent | 0478bc15bd3b4c616b4860e460600ba8877ee216 (diff) |
Add QFont::Weight enum values
And try to make good use of them in order to match the QFont
request more closely.
Task-number: QTBUG-38482
Change-Id: I768dfa8828e370d77a1c17ecf4796d750b3edd9b
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Diffstat (limited to 'src/gui/text/qfont.cpp')
-rw-r--r-- | src/gui/text/qfont.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index b867dc6ef2..9059092538 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -1033,10 +1033,14 @@ int QFont::weight() const This enum contains the predefined font weights: + \value Thin 0 + \value ExtraLight 12 \value Light 25 \value Normal 50 + \value Medium 57 \value DemiBold 63 \value Bold 75 + \value ExtraBold 81 \value Black 87 */ @@ -1063,7 +1067,7 @@ void QFont::setWeight(int weight) \fn bool QFont::bold() const Returns \c true if weight() is a value greater than - \l{Weight}{QFont::Normal}; otherwise returns \c false. + \l{Weight}{QFont::Medium}; otherwise returns \c false. \sa weight(), setBold(), QFontInfo::bold() */ |