┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/testdir.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-10-30 17:39:20 +0100
committerFrank Reininghaus <[email protected]>2013-10-30 17:40:23 +0100
commite518cea0cf91056fe7ff391b916623fb0654dff4 (patch)
tree4366b67388e0e31732f212fb134d7119413e60bf /src/tests/testdir.h
parent5a019aec3ac47363ed46e843d0c7eab6a6c2aeb9 (diff)
Prevent storing some redundant data in KItemListViewLayouter
In KItemListViewLayouter, we have always stored a QRectF for each item, which is "the area that the item occupies". However, the size of the QRectF is already stored in the size hint resolver. Therefore, it is sufficient to store the position of the top left corner of the QRectF in a QPointF and construct the QRectF on demand. This patch reduces the memory usage by 16 bytes for each item in the view: * a QRectF is 4 doubles -> 32 byes * a QPointF contains only 2 doubles -> 16 bytes REVIEW: 113487
Diffstat (limited to 'src/tests/testdir.h')
0 files changed, 0 insertions, 0 deletions