summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextmarkdownimporter_p.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-10-01 12:31:11 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-10-01 16:46:48 +0200
commit132d6d012701ce00a4ff82eae5b14e560632e893 (patch)
treee75e55fb2dfdf26aa64a42b4a3ffb040f6ed3c32 /src/gui/text/qtextmarkdownimporter_p.h
parent18bb10373aa06d258763a1f75e53acb397269ce4 (diff)
QFontCache: don't start cleanup timer if we are not in the main thread
We can only start timers in threads started via QThread, and even then we cannot assume that the thread runs an event loop. So only start the timer when we are in the main thread. Add a test that verifies that we don't get the warning message. Pick-to: 6.2 Change-Id: I40d7d9ff115720f9ecd3eedaebbade2643daf843 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/gui/text/qtextmarkdownimporter_p.h')
0 files changed, 0 insertions, 0 deletions