From 29c99bddbf48f97b054a34354f55b36a3f84a62c Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 22 Jun 2020 10:12:38 +0200 Subject: Use QList instead of QVector in examples Task-number: QTBUG-84469 Change-Id: Id14119168bb1bf11f99bda7ef6ee9cf51bcfab2e Reviewed-by: Sona Kurazyan --- examples/widgets/painting/pathstroke/pathstroke.cpp | 2 +- examples/widgets/painting/pathstroke/pathstroke.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/widgets/painting/pathstroke') 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 dashes; + QList 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 m_points; - QVector m_vectors; + QList m_points; + QList m_vectors; Qt::PenJoinStyle m_joinStyle; Qt::PenCapStyle m_capStyle; -- cgit v1.2.3