diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-22 11:44:14 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-29 19:19:47 +0200 |
commit | 9fa3cf15c8500fba5bbb861f1925160815ae2afd (patch) | |
tree | f779e08446bf302803b27130cf4c92fe46ba68b6 /src/gui/painting/qpainterpath_p.h | |
parent | c70c4e42665eb34e677fc51a49552c9af3f58d7a (diff) |
Use QList instead of QVector in gui
Applied to headers only. Source file to be changed separately.
Task-number: QTBUG-84469
Change-Id: Ic08a899321eaffc46b8461aaee3dbaa4d2c727a9
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/painting/qpainterpath_p.h')
-rw-r--r-- | src/gui/painting/qpainterpath_p.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/gui/painting/qpainterpath_p.h b/src/gui/painting/qpainterpath_p.h index d52243b0df..57668190db 100644 --- a/src/gui/painting/qpainterpath_p.h +++ b/src/gui/painting/qpainterpath_p.h @@ -98,7 +98,7 @@ public: private: QAtomicInt ref; - QVector<QPainterPath::Element> elements; + QList<QPainterPath::Element> elements; }; class QPainterPathStrokerPrivate @@ -107,7 +107,7 @@ public: QPainterPathStrokerPrivate(); QStroker stroker; - QVector<qfixed> dashPattern; + QList<qfixed> dashPattern; qreal dashOffset; }; @@ -117,20 +117,19 @@ class QVectorPathConverter; class QVectorPathConverter { public: - QVectorPathConverter(const QVector<QPainterPath::Element> &path, uint fillRule, bool convex) + QVectorPathConverter(const QList<QPainterPath::Element> &path, uint fillRule, bool convex) : pathData(path, fillRule, convex), - path(pathData.points.data(), path.size(), - pathData.elements.data(), pathData.flags) {} + path(pathData.points.data(), path.size(), pathData.elements.data(), pathData.flags) + { + } const QVectorPath &vectorPath() { return path; } struct QVectorPathData { - QVectorPathData(const QVector<QPainterPath::Element> &path, uint fillRule, bool convex) - : elements(path.size()), - points(path.size() * 2), - flags(0) + QVectorPathData(const QList<QPainterPath::Element> &path, uint fillRule, bool convex) + : elements(path.size()), points(path.size() * 2), flags(0) { int ptsPos = 0; bool isLines = true; |