examples: use QVector<QPointF> instead of QList<QPointF>
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 1 Mar 2012 09:09:02 +0000 (10:09 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 8 Mar 2012 04:31:40 +0000 (05:31 +0100)
commita03a71e332294aa500ac8475bb777c2f33609e8b
treee34b460ad45825c9accb48b79ad72dde44c707f7
parente2f8cdf9a637d88d43fbd3f5a174ba81051ee975
examples: use QVector<QPointF> instead of QList<QPointF>

QPointF is in the category of types for which QList
is needlessly inefficient (elements are copy-constructed
onto the heap and held through pointers). Use a vector
instead. This is consistent with the QPainter API.

Change-Id: Id0e910c067a60d12fbc175e7ee7da824834be374
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
examples/animation/stickman/animation.cpp
examples/graphicsview/chip/chip.h
tests/auto/widgets/graphicsview/qgraphicsscene/tst_qgraphicsscene.cpp
tests/benchmarks/gui/graphicsview/qgraphicsview/benchapps/chipTest/chip.h
tests/benchmarks/gui/graphicsview/qgraphicsview/chiptester/chip.h