qt5base-lts/tests/auto/gui/text/qrawfont
Eskil Abrahamsen Blomfeldt 76068d0114 Make QFontDatabase member functions static
QFontDatabase is a singleton and all instances would share
a single, mutex-protected global data pointer. But some functions
were implemented as non-static functions. This caused a lot
of code on the form

	QFontDatabase().families(...)

since there was no static access. Other functions were implemented
as static.

To consolidate, we make all functions static. This should be
source-compatible, but not binary compatible.

[ChangeLog][QtGui][Fonts] Some functions in QFontDatabase were in
principle static, but previously not implemented as such. All
member functions have now been made static, so that constructing
objects of QFontDatabase is no longer necessary to access certain
functionality.

Fixes: QTBUG-83284
Change-Id: Ifd8c15016281c71f631b53387402c942cd9c43f6
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2020-08-06 11:43:24 +02:00
..
BLACKLIST CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
CMakeLists.txt CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qrawfont.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
testdata.qrc Added capHeight() to QRawFont and QFontMetrics(F) 2016-08-15 18:27:06 +00:00
testfont_bold_italic.ttf Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
testfont_os2_v1.ttf Added capHeight() to QRawFont and QFontMetrics(F) 2016-08-15 18:27:06 +00:00
tst_qrawfont.cpp Make QFontDatabase member functions static 2020-08-06 11:43:24 +02:00