diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-24 10:25:01 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-25 10:11:51 +0200 |
commit | 3c7d4de151d0d87b687644381c5d8aaef06f21b2 (patch) | |
tree | 12c688048acac5f817b68dfbef088544a8ae946a /src/datavisualization/data/customrenderitem_p.h | |
parent | fcb44309e4cd228245d310bdbd622e7a2ff98283 (diff) |
Use QList instead of QVector
Task-number: QTBUG-84469
Change-Id: I4dc064b70adb054ca4add2dd662e7227255ff970
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/datavisualization/data/customrenderitem_p.h')
-rw-r--r-- | src/datavisualization/data/customrenderitem_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datavisualization/data/customrenderitem_p.h b/src/datavisualization/data/customrenderitem_p.h index abf6e106..3ee423cb 100644 --- a/src/datavisualization/data/customrenderitem_p.h +++ b/src/datavisualization/data/customrenderitem_p.h @@ -99,9 +99,9 @@ public: inline void setTextureDepth(int depth) { m_textureDepth = depth; setSliceIndexZ(m_sliceIndexZ); } inline int textureDepth() const { return m_textureDepth; } inline int textureSize() const { return m_textureWidth * m_textureHeight * m_textureDepth; } - inline void setColorTable(const QVector<QVector4D> &colors) { m_colorTable = colors; } - void setColorTable(const QVector<QRgb> &colors); - inline const QVector<QVector4D> &colorTable() const { return m_colorTable; } + inline void setColorTable(const QList<QVector4D> &colors) { m_colorTable = colors; } + void setColorTable(const QList<QRgb> &colors); + inline const QList<QVector4D> &colorTable() const { return m_colorTable; } inline void setVolume(bool volume) { m_isVolume = volume; } inline bool isVolume() const { return m_isVolume; } inline void setTextureFormat(QImage::Format format) { m_textureFormat = format; } @@ -175,7 +175,7 @@ private: int m_textureWidth; int m_textureHeight; int m_textureDepth; - QVector<QVector4D> m_colorTable; + QList<QVector4D> m_colorTable; bool m_isVolume; QImage::Format m_textureFormat; int m_sliceIndexX; |