summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/pathstroke
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-22 10:12:38 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-23 14:01:11 +0200
commit29c99bddbf48f97b054a34354f55b36a3f84a62c (patch)
treeca0116c45cc3cb04e13a953316f468012d3dc2d2 /examples/widgets/painting/pathstroke
parentd7efb2a419a88c8f512b98194c8f7bc81dbe942b (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/pathstroke')
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.cpp2
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.h4
2 files changed, 3 insertions, 3 deletions
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;