diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-07-07 14:02:36 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-07-07 19:32:07 +0200 |
commit | 8a59b2ebf081af5bb9698281420d0ce59405712d (patch) | |
tree | 354f5ca9f897667c8ee9b0765c32a1f2daabcd92 /tests/manual | |
parent | 858e0ce0ef39e3094e09c19fa27a896be4abfe74 (diff) |
Use QList instead of QVector
Task-number: QTBUG-84469
Change-Id: Ic726ce85e01190dbc64426388fd454c54ae3c3e3
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/deferred-renderer-cpp/pointlightblock.cpp | 2 | ||||
-rw-r--r-- | tests/manual/deferred-renderer-cpp/pointlightblock.h | 6 | ||||
-rw-r--r-- | tests/manual/dynamicscene-cpp/examplescene.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/manual/deferred-renderer-cpp/pointlightblock.cpp b/tests/manual/deferred-renderer-cpp/pointlightblock.cpp index 36bab9966..aceb13dad 100644 --- a/tests/manual/deferred-renderer-cpp/pointlightblock.cpp +++ b/tests/manual/deferred-renderer-cpp/pointlightblock.cpp @@ -60,7 +60,7 @@ PointLightBlock::~PointLightBlock() { } -QVector<Qt3DRender::QAbstractLight *> PointLightBlock::lights() const +QList<Qt3DRender::QAbstractLight *> PointLightBlock::lights() const { return m_lights; } diff --git a/tests/manual/deferred-renderer-cpp/pointlightblock.h b/tests/manual/deferred-renderer-cpp/pointlightblock.h index 9c93528c8..e2f1063df 100644 --- a/tests/manual/deferred-renderer-cpp/pointlightblock.h +++ b/tests/manual/deferred-renderer-cpp/pointlightblock.h @@ -57,19 +57,19 @@ class PointLightBlock : public Qt3DRender::QShaderData { Q_OBJECT - Q_PROPERTY(QVector<Qt3DRender::QAbstractLight *> lights READ lights NOTIFY lightsChanged) + Q_PROPERTY(QList<Qt3DRender::QAbstractLight *> lights READ lights NOTIFY lightsChanged) public: explicit PointLightBlock(Qt3DCore::QNode *parent = 0); ~PointLightBlock(); - QVector<Qt3DRender::QAbstractLight *> lights() const; + QList<Qt3DRender::QAbstractLight *> lights() const; void addLight(Qt3DRender::QAbstractLight *light); Q_SIGNALS: void lightsChanged(); private: - QVector<Qt3DRender::QAbstractLight *> m_lights; + QList<Qt3DRender::QAbstractLight *> m_lights; }; #endif // POINTLIGHTBLOCK_H diff --git a/tests/manual/dynamicscene-cpp/examplescene.h b/tests/manual/dynamicscene-cpp/examplescene.h index cac6330f3..fb141e355 100644 --- a/tests/manual/dynamicscene-cpp/examplescene.h +++ b/tests/manual/dynamicscene-cpp/examplescene.h @@ -72,7 +72,7 @@ private Q_SLOTS: void buildScene(); private: - QVector<BoxEntity *> m_entities; + QList<BoxEntity *> m_entities; QTimer *m_timer; bool m_even; }; |