diff options
| author | Frank Reininghaus <[email protected]> | 2013-12-29 09:42:25 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-12-29 09:42:25 +0100 |
| commit | 9866e4826e7a9e7bc80a0fe6142662da52f75e84 (patch) | |
| tree | 8d634bd4efdb64110f0e64036438059735caa8bd /src/views/viewmodecontroller.cpp | |
| parent | 545d872b817a0a91aeb7867f04cc0d912d226da0 (diff) | |
Remove redundant data from KItemListViewLayouter's ItemInfo struct
It is not necessary to save the position of each item as a QPointF
because all items in a row will have the same y-coordinate, and all
items in a column will have the same x-coordinate. Therefore, we can
reduce the number of doubles that we store from
(number of items) * 2
to
(number of rows) + (number of colums)
which is at least 50% less.
REVIEW: 114460
Diffstat (limited to 'src/views/viewmodecontroller.cpp')
0 files changed, 0 insertions, 0 deletions
