Go to file
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
bin syncqt: Do not clean header directory before "-minimal" run 2018-11-22 14:16:53 +00:00
config.tests configure: modernize iconv use 2018-12-19 19:22:16 +00:00
dist Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
doc Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
examples Long live QColorSpace and friends 2019-02-08 10:12:05 +00:00
lib Purge all fonts 2015-08-18 19:59:14 +00:00
mkspecs Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
qmake qmake.pro: Fix missing headers and add missing line continuation 2019-02-08 10:45:52 +00:00
src Allow more fine grained control over QFont debug output 2019-02-11 13:14:07 +00:00
tests Convert tst_qabstractnetwork auto-test 2019-02-11 11:44:36 +00:00
util Merge remote-tracking branch 'origin/5.12' into dev 2018-11-13 01:00:13 +01:00
.gitattributes
.gitignore Remove support for qml1 plugins and modules 2018-11-15 19:52:13 +00:00
.qmake.conf Bump version 2019-01-14 09:12:55 +02:00
.tag
config_help.txt qpa: remove mirclient 2019-02-11 10:40:28 +00:00
configure configure: Treat win32-clang-g++ the same as win32-g++ 2018-10-10 04:10:40 +00:00
configure.bat configure: Prefer cl.exe over clang-cl.exe 2018-01-04 21:22:42 +00:00
configure.json Merge remote-tracking branch 'origin/5.12' into dev 2019-01-04 07:33:14 +01:00
configure.pri Android: Set minimum supported version to android-21 2019-01-23 15:21:56 +00:00
header.BSD Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.COMM Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.FDL Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.GPL Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.GPL-EXCEPT Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL3 Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL3-COMM Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL-NOGPL2 Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.LGPL-ONLY Use placeholder for year in header.* files 2018-04-16 11:02:22 +00:00
header.MIT qsimd: add support for new x86 CPU features 2018-05-05 06:20:07 +00:00
INSTALL Doc: Update links in INSTALL file 2015-02-16 09:06:41 +00:00
LICENSE.FDL
LICENSE.GPL2 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.GPL3 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.GPL3-EXCEPT Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.LGPL3 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.LGPLv3 Remove LICENSE.GPLv3, LICENSE.LGPLv21, LGPL_EXCEPTION.txt 2018-04-16 11:02:14 +00:00
LICENSE.QT-LICENSE-AGREEMENT-4.0 Replace commercial preview license with Qt License Agreement 4.0 2018-06-21 11:39:15 +00:00
qtbase.pro nuke configure -host-option 2016-12-13 18:55:59 +00:00
sync.profile Fix build failed with ANGLE 2018-10-16 05:19:43 +00:00