summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-09-03 09:51:40 +0200
committerMarc Mutz <marc.mutz@kdab.com>2014-09-04 21:27:56 +0200
commite4fb59c0afa17b3530102f3a32f2323bedd3faa6 (patch)
tree92f30213c77dfae389a680f49452c95324ddf3ba /src/corelib/tools
parent8478fc4e597101e183b94162a1e5b57de71820a1 (diff)
QCommonStyle: replace a QPolygon with a QPoint[] (IV)
No need to allocate dynamic memory for a fixed-size point array when QPainter has a (QPoint*,int) overload. This one is a bit more complicated, as the QPolygon was returned from a helper function, so I wrapped the array in a minimal std::array-like StaticPolygonF. Together, these four QPolygon -> QPoint[] changes result in ca. 4.5K text size reduction for libQtWidgets. Change-Id: I082f199d5edb7a7782173fe3748220f373edac8a Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/tools')
0 files changed, 0 insertions, 0 deletions