summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestkeyboard.h
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2016-01-25 09:50:34 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2016-01-26 22:39:45 +0000
commitc195fde37a533956073000590b3bf66cb91e6bc3 (patch)
tree4cae54c3b1a75d8988ee359f729d8057b582a299 /src/testlib/qtestkeyboard.h
parented70a645aac345cfbe46abe69046de8805c9c985 (diff)
QFont*: Optimize by caching the QFontCache::instance() result
The QFontCache instance is stored in QThreadStorage and thus calling QFontCache::instance() isn't really cheap; avoid calling it multiple times where possible. Change-Id: I1b7a83089698a06c49dac08b2a3a8e9c3c75a500 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/testlib/qtestkeyboard.h')
0 files changed, 0 insertions, 0 deletions