summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qstatictext.h
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2010-06-16 08:01:42 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-06-16 09:33:26 (GMT)
commit71ba2b0973d291e991e1498c266e69d6640c8531 (patch)
tree2c56a1a5d23b00c3f89be1c608df846f1cf420ef /src/gui/text/qstatictext.h
parentc9a89b253176547901e11d27c042983a65f43b1f (diff)
downloadQt-71ba2b0973d291e991e1498c266e69d6640c8531.zip
Qt-71ba2b0973d291e991e1498c266e69d6640c8531.tar.gz
Qt-71ba2b0973d291e991e1498c266e69d6640c8531.tar.bz2
Reduce the memory consumption of QtFontStyle
QtFontSize::pixelSize() was allocating 8 slots for QtFontSize while most fonts only require one. This patch add a special case for the first QtFontSize in order to reduce memory consumption. The size of QtFontSize in memory has also been reduced. Overall, the memory consumtion of QtFontStyle instances go down from 100kb to 10kb. Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'src/gui/text/qstatictext.h')
0 files changed, 0 insertions, 0 deletions