diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-22 10:12:38 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-23 14:01:11 +0200 |
commit | 29c99bddbf48f97b054a34354f55b36a3f84a62c (patch) | |
tree | ca0116c45cc3cb04e13a953316f468012d3dc2d2 /examples/widgets/painting | |
parent | d7efb2a419a88c8f512b98194c8f7bc81dbe942b (diff) |
Use QList instead of QVector in examples
Task-number: QTBUG-84469
Change-Id: Id14119168bb1bf11f99bda7ef6ee9cf51bcfab2e
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'examples/widgets/painting')
5 files changed, 7 insertions, 7 deletions
diff --git a/examples/widgets/painting/deform/pathdeform.h b/examples/widgets/painting/deform/pathdeform.h index af869badc9..0314755b34 100644 --- a/examples/widgets/painting/deform/pathdeform.h +++ b/examples/widgets/painting/deform/pathdeform.h @@ -105,8 +105,8 @@ private: // int m_fpsCounter; QElapsedTimer m_repaintTracker; - QVector<QPainterPath> m_paths; - QVector<QPointF> m_advances; + QList<QPainterPath> m_paths; + QList<QPointF> m_advances; QRectF m_pathBounds; QString m_text; diff --git a/examples/widgets/painting/gradients/gradients.cpp b/examples/widgets/painting/gradients/gradients.cpp index cb1a0177e9..76d5818d32 100644 --- a/examples/widgets/painting/gradients/gradients.cpp +++ b/examples/widgets/painting/gradients/gradients.cpp @@ -542,7 +542,7 @@ GradientRenderer::GradientRenderer(QWidget *parent) m_hoverPoints->setConnectionType(HoverPoints::NoConnection); m_hoverPoints->setEditable(false); - QVector<QPointF> points; + QList<QPointF> points; points << QPointF(100, 100) << QPointF(200, 200); m_hoverPoints->setPoints(points); diff --git a/examples/widgets/painting/pathstroke/pathstroke.cpp b/examples/widgets/painting/pathstroke/pathstroke.cpp index 439bcb2cd0..412c2da6a4 100644 --- a/examples/widgets/painting/pathstroke/pathstroke.cpp +++ b/examples/widgets/painting/pathstroke/pathstroke.cpp @@ -470,7 +470,7 @@ void PathStrokeRenderer::paint(QPainter *painter) stroker.setJoinStyle(m_joinStyle); stroker.setCapStyle(m_capStyle); - QVector<qreal> dashes; + QList<qreal> dashes; qreal space = 4; dashes << 1 << space << 3 << space diff --git a/examples/widgets/painting/pathstroke/pathstroke.h b/examples/widgets/painting/pathstroke/pathstroke.h index b559ed2ba0..e7e78b641b 100644 --- a/examples/widgets/painting/pathstroke/pathstroke.h +++ b/examples/widgets/painting/pathstroke/pathstroke.h @@ -119,8 +119,8 @@ private: int m_pointCount; int m_pointSize; int m_activePoint; - QVector<QPointF> m_points; - QVector<QPointF> m_vectors; + QList<QPointF> m_points; + QList<QPointF> m_vectors; Qt::PenJoinStyle m_joinStyle; Qt::PenCapStyle m_capStyle; diff --git a/examples/widgets/painting/shared/hoverpoints.h b/examples/widgets/painting/shared/hoverpoints.h index 6bf1cafe4e..3c6f356e1b 100644 --- a/examples/widgets/painting/shared/hoverpoints.h +++ b/examples/widgets/painting/shared/hoverpoints.h @@ -135,7 +135,7 @@ private: SortType m_sortType; ConnectionType m_connectionType; - QVector<uint> m_locks; + QList<uint> m_locks; QSizeF m_pointSize; int m_currentIndex; |