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/qtriangulator_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/qtriangulator_p.h')
-rw-r--r-- | src/gui/painting/qtriangulator_p.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/painting/qtriangulator_p.h b/src/gui/painting/qtriangulator_p.h index 177e5e66ed..e07fcae090 100644 --- a/src/gui/painting/qtriangulator_p.h +++ b/src/gui/painting/qtriangulator_p.h @@ -52,8 +52,8 @@ // #include <QtGui/private/qtguiglobal_p.h> -#include <QtCore/qvector.h> #include <QtGui/private/qvectorpath_p.h> +#include <QtCore/qlist.h> QT_BEGIN_NAMESPACE @@ -67,13 +67,13 @@ public: inline Type type() const { return t; } - inline void setDataUint(const QVector<quint32> &data) + inline void setDataUint(const QList<quint32> &data) { t = UnsignedInt; indices32 = data; } - inline void setDataUshort(const QVector<quint16> &data) + inline void setDataUshort(const QList<quint16> &data) { t = UnsignedShort; indices16 = data; @@ -96,20 +96,20 @@ public: private: Type t; - QVector<quint32> indices32; - QVector<quint16> indices16; + QList<quint32> indices32; + QList<quint16> indices16; }; struct QTriangleSet { // The vertices of a triangle are given by: (x[i[n]], y[i[n]]), (x[j[n]], y[j[n]]), (x[k[n]], y[k[n]]), n = 0, 1, ... - QVector<qreal> vertices; // [x[0], y[0], x[1], y[1], x[2], ...] + QList<qreal> vertices; // [x[0], y[0], x[1], y[1], x[2], ...] QVertexIndexVector indices; // [i[0], j[0], k[0], i[1], j[1], k[1], i[2], ...] }; struct QPolylineSet { - QVector<qreal> vertices; // [x[0], y[0], x[1], y[1], x[2], ...] + QList<qreal> vertices; // [x[0], y[0], x[1], y[1], x[2], ...] QVertexIndexVector indices; // End of polyline is marked with -1. }; |