qt5base-lts/src
Tor Arne Vestbø ece341e2f3 Allow more fine grained control over QFont debug output
With verbosity level 0, only the resolved properties are included
in the debug output, which is useful when debugging font resolving.

With verbosity level 1, the family, size, and weights are included,
plus any resolved property that is different from the default value.

Verbosity level 2, the QDebug default, has been kept unchanged,
except removing quotes and spaces by adding nospace() and qPrintable.

Verbosity level 3 includes all properties, regardless of whether or
not they have been resolved.

Levels 1 and 3 also include the resolve mask, to aid debugging.

This gives the following results for a QFont set to 100pt:

  QFont(100pt)
  QFont(".SF NS Text", 100pt, Weight::Normal, resolveMask=SizeResolved)
  QFont(.SF NS Text,100,-1,5,50,0,0,0,0,0)
  QFont(".SF NS Text", 100pt, StyleHint::AnyStyle, StyleStrategy::PreferDefault,
    Weight::Normal, StyleNormal, underline=false, overline=false, strikeOut=false,
    fixedPitch=false, AnyStretch, kerning=true, MixedCase, letterSpacing=0
    (PercentageSpacing), PreferDefaultHinting, styleName="", resolveMask=SizeResolved)

Change-Id: Ib4aebd7346ef4a2946cc4450c12730cf7844c3bc
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2019-02-11 13:14:07 +00:00
..
3rdparty Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
android Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
angle configure: detect fxc.exe more thoroughly 2018-12-17 21:29:11 +00:00
concurrent
corelib Use QBasicMutex instead of QMutex in the signalSlockLock() 2019-02-08 21:55:41 +00:00
dbus Use Q_DISABLE_COPY_MOVE for private classes 2018-12-12 07:23:54 +00:00
gui Allow more fine grained control over QFont debug output 2019-02-11 13:14:07 +00:00
network Merge dev into 5.13 2019-02-01 13:33:26 +01:00
opengl QtBase: replace 0 with \nullptr in documentation 2019-01-28 19:37:30 +00:00
openglextensions QtOpenGLExtensions: Unify license headers 2019-01-11 11:06:25 +00:00
platformheaders Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
platformsupport Simplify freetype rendering 2019-02-10 22:09:21 +00:00
plugins qpa: remove mirclient 2019-02-11 10:40:28 +00:00
printsupport Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
sql QtBase: replace 0 with \nullptr in documentation 2019-01-28 19:37:30 +00:00
testlib Shave ~5% off from signal emission time 2019-02-08 21:55:16 +00:00
tools Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
widgets Remove old dead code 2019-02-08 22:09:47 +00:00
winmain Use msvc qmake scope where appropriate 2018-11-22 14:16:52 +00:00
xml QtBase: replace 0 with \nullptr in documentation 2019-01-28 19:37:30 +00:00
src.pro