summaryrefslogtreecommitdiffstats
path: root/tests/manual/qmlvolume
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-24 10:25:01 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-25 10:11:51 +0200
commit3c7d4de151d0d87b687644381c5d8aaef06f21b2 (patch)
tree12c688048acac5f817b68dfbef088544a8ae946a /tests/manual/qmlvolume
parentfcb44309e4cd228245d310bdbd622e7a2ff98283 (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 'tests/manual/qmlvolume')
-rw-r--r--tests/manual/qmlvolume/datasource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/qmlvolume/datasource.cpp b/tests/manual/qmlvolume/datasource.cpp
index 6f3d8c15..a06ea6d9 100644
--- a/tests/manual/qmlvolume/datasource.cpp
+++ b/tests/manual/qmlvolume/datasource.cpp
@@ -57,7 +57,7 @@ void DataSource::fillVolume(QCustom3DVolume *volumeItem)
float(textureSize) / 2.0f,
float(textureSize) / 2.0f);
- QVector<uchar> *textureData = new QVector<uchar>(textureSize * textureSize * textureSize / 2);
+ QList<uchar> *textureData = new QList<uchar>(textureSize * textureSize * textureSize / 2);
for (int i = 0; i < textureSize; i++) {
for (int j = 0; j < textureSize / 2; j++) {
for (int k = 0; k < textureSize; k++) {
@@ -82,7 +82,7 @@ void DataSource::fillVolume(QCustom3DVolume *volumeItem)
volumeItem->setTextureFormat(QImage::Format_Indexed8);
volumeItem->setTextureData(textureData);
- QVector<QRgb> colorTable(256);
+ QList<QRgb> colorTable(256);
for (int i = 1; i < 256; i++) {
if (i < 15)