diff options
author | Mikhail Svetkin <mikhail.svetkin@qt.io> | 2019-01-03 15:57:37 +0100 |
---|---|---|
committer | Mikhail Svetkin <mikhail.svetkin@qt.io> | 2019-01-07 13:07:06 +0000 |
commit | bec817334705d86bc4e99af2e7220bb877f036d3 (patch) | |
tree | 8078f87a24032b98f3c20e81306a47f01822f1e7 /examples/widgets/tools | |
parent | 4f598ff06276433c24600b7afbdfc35564216e09 (diff) |
QPainter: replace an QVector with QVarLengthArray
We usually do not keep a lot of QPainter states, but we need to
call 1 allocation and 1 reallocation for keep 4 states. It will be
better to use QVarLengthArray with preallocation for 8 states.
Change-Id: Iacb6aa7a73807491534b1a915453f218d6e4305b
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'examples/widgets/tools')
0 files changed, 0 insertions, 0 deletions