Make the QFontCache size configurable
It can be configured using the QFONTCACHE_MIN_COST define when configuring Qt. Change-Id: I41fb781099c4c0f03c378f10c8db4ea06ef4e9ff Task-number: QTBUG-83127 Reviewed-by: Risto Avila <risto.avila@qt.io> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
38096a3d70
commit
a85c7342ad
@ -2648,8 +2648,10 @@ static const int fast_timeout = 10000; // 10s
|
||||
static const int slow_timeout = 300000; // 5m
|
||||
#endif // QFONTCACHE_DEBUG
|
||||
|
||||
const uint QFontCache::min_cost = 4*1024; // 4mb
|
||||
|
||||
#ifndef QFONTCACHE_MIN_COST
|
||||
# define QFONTCACHE_MIN_COST 4*1024 // 4mb
|
||||
#endif
|
||||
const uint QFontCache::min_cost = QFONTCACHE_MIN_COST;
|
||||
Q_GLOBAL_STATIC(QThreadStorage<QFontCache *>, theFontCache)
|
||||
|
||||
QFontCache *QFontCache::instance()
|
||||
|
Loading…
Reference in New Issue
Block a user