summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/painting')
-rw-r--r--examples/widgets/painting/deform/pathdeform.h4
-rw-r--r--examples/widgets/painting/gradients/gradients.cpp2
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.cpp2
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.h4
-rw-r--r--examples/widgets/painting/shared/hoverpoints.h2
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;