summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJean-Michaël Celerier <jeanmichael.celerier@gmail.com>2017-07-09 19:27:35 +0200
committerJean-Michaël Celerier <jean-michael.celerier@kdab.com>2019-01-08 08:25:02 +0000
commite6a7b61d273c2985dee63df34e5941ee90754e2a (patch)
treedc27b083dcb810e70b9616b12adab7a9c64c0efe /src/plugins
parent4e6a42cdd050c8714686fa53b3246c4fc66d18fd (diff)
Add clear, reserve and capacity methods to QPainterPath
This allows anticipating and reusing internal allocations of QPainterPathElements instead of using the common `m_myPath = QPainterPath{}` pattern. [ChangeLog][QtGui][QPainterPath] Added clear(), reserve(), capacity(). clear() removes allocated QPainterPath elements but preserves allocated memory, which can be useful for application with complex paths that are often recreated. reserve() and capacity() follow QVector semantics. Change-Id: I763461e2a421feda9053d3eb512af2fcf07ade2b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions