diff options
| author | Volker Hilsheimer <[email protected]> | 2020-11-02 19:48:25 +0100 | 
|---|---|---|
| committer | Volker Hilsheimer <[email protected]> | 2020-11-03 20:36:34 +0100 | 
| commit | a50f0f045d3f749a4638bd4b46078bb86b329ad8 (patch) | |
| tree | 9846948577cd97029096f0b8872a4f8568e7425c /src/plugins/platforms/wasm/qwasmtheme.cpp | |
| parent | 488e72cce841c5caeed2c27052be146baf579c3e (diff) | |
Get rid of all instance usage of QFontDatabase
All QFontDatabase APIs are static, use them accordingly.
Task-number: QTBUG-88114
Change-Id: I0e4a7508646037e6e2812611262eed8b6d7ad3de
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmtheme.cpp')
| -rw-r--r-- | src/plugins/platforms/wasm/qwasmtheme.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/src/plugins/platforms/wasm/qwasmtheme.cpp b/src/plugins/platforms/wasm/qwasmtheme.cpp index 4b99f90591a..438e3e11197 100644 --- a/src/plugins/platforms/wasm/qwasmtheme.cpp +++ b/src/plugins/platforms/wasm/qwasmtheme.cpp @@ -35,9 +35,8 @@ QT_BEGIN_NAMESPACE  QWasmTheme::QWasmTheme()  { -    QFontDatabase fdb; -    for (auto family : fdb.families()) -        if (fdb.isFixedPitch(family)) +    for (auto family : QFontDatabase::families()) +        if (QFontDatabase::isFixedPitch(family))              fixedFont = new QFont(family);  } | 
