diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-22 15:34:48 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-25 10:14:24 +0200 |
commit | e721ec269e972ea2754cb9bd27fb73b72ed53c7b (patch) | |
tree | b09bb4ca8fe18d528a0a88cb310ecd1f8dc9216f /tests/auto/other/lancelot | |
parent | b62f32a4dd87010e4c51d33ef440e2fbba531361 (diff) | |
download | qtbase-e721ec269e972ea2754cb9bd27fb73b72ed53c7b.tar.gz |
Use QList instead of QVector in other tests
Task-number: QTBUG-84469
Change-Id: I656c9f73bd2364be39ee67747524e7c4a25c0935
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/other/lancelot')
-rw-r--r-- | tests/auto/other/lancelot/paintcommands.cpp | 2 | ||||
-rw-r--r-- | tests/auto/other/lancelot/paintcommands.h | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/auto/other/lancelot/paintcommands.cpp b/tests/auto/other/lancelot/paintcommands.cpp index 2f6bd2872f..f2839d57e1 100644 --- a/tests/auto/other/lancelot/paintcommands.cpp +++ b/tests/auto/other/lancelot/paintcommands.cpp @@ -2733,7 +2733,7 @@ void PaintCommands::command_pen_setDashPattern(QRegularExpressionMatch re) QString cap = caps.at(1); QStringList numbers = cap.split(separators, Qt::SkipEmptyParts); - QVector<qreal> pattern; + QList<qreal> pattern; for (int i=0; i<numbers.size(); ++i) pattern.append(convertToDouble(numbers.at(i))); diff --git a/tests/auto/other/lancelot/paintcommands.h b/tests/auto/other/lancelot/paintcommands.h index 6085b9c088..e9468b1f42 100644 --- a/tests/auto/other/lancelot/paintcommands.h +++ b/tests/auto/other/lancelot/paintcommands.h @@ -109,7 +109,11 @@ public: void setPainter(QPainter *pt) { staticInit(); m_painter = pt; } void setType(DeviceType t) { staticInit(); m_type = t; } void setFilePath(const QString &path) { staticInit(); m_filepath = path; } - void setControlPoints(const QVector<QPointF> &points) { staticInit(); m_controlPoints = points; } + void setControlPoints(const QList<QPointF> &points) + { + staticInit(); + m_controlPoints = points; + } void setVerboseMode(bool v) { staticInit(); m_verboseMode = v; } void insertAt(int commandIndex, const QStringList &newCommands); void setShouldDrawText(bool drawText) { m_shouldDrawText = drawText; } @@ -279,7 +283,7 @@ private: bool m_checkers_background; bool m_shouldDrawText; - QVector<QPointF> m_controlPoints; + QList<QPointF> m_controlPoints; #ifndef QT_NO_OPENGL QOpenGLContext *m_default_glcontext; |