summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/imageformats/icns/qicnshandler.cpp6
-rw-r--r--src/plugins/imageformats/icns/qicnshandler_p.h6
-rw-r--r--src/plugins/imageformats/shared/qiiofhelpers_p.h4
-rw-r--r--src/plugins/imageformats/tiff/qtiffhandler.cpp12
-rw-r--r--tests/auto/tiff/tst_qtiff.cpp6
5 files changed, 17 insertions, 17 deletions
diff --git a/src/plugins/imageformats/icns/qicnshandler.cpp b/src/plugins/imageformats/icns/qicnshandler.cpp
index dde783c..05b8f5b 100644
--- a/src/plugins/imageformats/icns/qicnshandler.cpp
+++ b/src/plugins/imageformats/icns/qicnshandler.cpp
@@ -396,9 +396,9 @@ static inline QByteArray nameForCompressedIcon(quint8 iconNumber)
return base + QByteArray::number(iconNumber);
}
-static inline QVector<QRgb> getColorTable(ICNSEntry::Depth depth)
+static inline QList<QRgb> getColorTable(ICNSEntry::Depth depth)
{
- QVector<QRgb> table;
+ QList<QRgb> table;
uint n = 1 << depth;
const QRgb *data;
switch (depth) {
@@ -561,7 +561,7 @@ static QImage readLowDepthIcon(const ICNSEntry &icon, QDataStream &stream)
const bool isMono = depth == ICNSEntry::DepthMono;
const QImage::Format format = isMono ? QImage::Format_Mono : QImage::Format_Indexed8;
- const QVector<QRgb> colortable = getColorTable(depth);
+ const QList<QRgb> colortable = getColorTable(depth);
if (colortable.isEmpty())
return QImage();
QImage img(icon.width, icon.height, format);
diff --git a/src/plugins/imageformats/icns/qicnshandler_p.h b/src/plugins/imageformats/icns/qicnshandler_p.h
index e83d4eb..dc6aba1 100644
--- a/src/plugins/imageformats/icns/qicnshandler_p.h
+++ b/src/plugins/imageformats/icns/qicnshandler_p.h
@@ -42,7 +42,7 @@
#define QICNSHANDLER_P_H
#include <QtGui/qimageiohandler.h>
-#include <QtCore/qvector.h>
+#include <QtCore/qlist.h>
#ifndef QT_NO_DATASTREAM
@@ -155,8 +155,8 @@ private:
};
int m_currentIconIndex;
- QVector<ICNSEntry> m_icons;
- QVector<ICNSEntry> m_masks;
+ QList<ICNSEntry> m_icons;
+ QList<ICNSEntry> m_masks;
ScanState m_state;
};
diff --git a/src/plugins/imageformats/shared/qiiofhelpers_p.h b/src/plugins/imageformats/shared/qiiofhelpers_p.h
index 1b1771b..18862f1 100644
--- a/src/plugins/imageformats/shared/qiiofhelpers_p.h
+++ b/src/plugins/imageformats/shared/qiiofhelpers_p.h
@@ -54,7 +54,7 @@
#include <QImageIOPlugin>
#include <private/qcore_mac_p.h>
#include <ImageIO/ImageIO.h>
-#include <QVector>
+#include <QList>
QT_BEGIN_NAMESPACE
@@ -85,7 +85,7 @@ protected:
bool getIntProperty(CFStringRef property, int *value);
QImageIOHandler *q_ptr = nullptr;
- QVector<QVariant> writeOptions;
+ QList<QVariant> writeOptions;
QCFType<CGDataProviderRef> cgDataProvider = nullptr;
QCFType<CGImageSourceRef> cgImageSource = nullptr;
QCFType<CFDictionaryRef> cfImageDict = nullptr;
diff --git a/src/plugins/imageformats/tiff/qtiffhandler.cpp b/src/plugins/imageformats/tiff/qtiffhandler.cpp
index 091e640..b6c50b8 100644
--- a/src/plugins/imageformats/tiff/qtiffhandler.cpp
+++ b/src/plugins/imageformats/tiff/qtiffhandler.cpp
@@ -367,7 +367,7 @@ bool QTiffHandler::read(QImage *image)
// Setup color tables
if (format == QImage::Format_Mono || format == QImage::Format_Indexed8) {
if (format == QImage::Format_Mono) {
- QVector<QRgb> colortable(2);
+ QList<QRgb> colortable(2);
if (d->photometric == PHOTOMETRIC_MINISBLACK) {
colortable[0] = 0xff000000;
colortable[1] = 0xffffffff;
@@ -378,7 +378,7 @@ bool QTiffHandler::read(QImage *image)
image->setColorTable(colortable);
} else if (format == QImage::Format_Indexed8) {
const uint16 tableSize = 256;
- QVector<QRgb> qtColorTable(tableSize);
+ QList<QRgb> qtColorTable(tableSize);
if (d->grayscale) {
for (int i = 0; i<tableSize; ++i) {
const int c = (d->photometric == PHOTOMETRIC_MINISBLACK) ? i : (255 - i);
@@ -506,7 +506,7 @@ bool QTiffHandler::read(QImage *image)
return true;
}
-static bool checkGrayscale(const QVector<QRgb> &colorTable)
+static bool checkGrayscale(const QList<QRgb> &colorTable)
{
if (colorTable.size() != 256)
return false;
@@ -520,9 +520,9 @@ static bool checkGrayscale(const QVector<QRgb> &colorTable)
return true;
}
-static QVector<QRgb> effectiveColorTable(const QImage &image)
+static QList<QRgb> effectiveColorTable(const QImage &image)
{
- QVector<QRgb> colors;
+ QList<QRgb> colors;
switch (image.format()) {
case QImage::Format_Indexed8:
colors = image.colorTable();
@@ -652,7 +652,7 @@ bool QTiffHandler::write(const QImage &image)
|| format == QImage::Format_Grayscale8
|| format == QImage::Format_Grayscale16
|| format == QImage::Format_Alpha8) {
- QVector<QRgb> colorTable = effectiveColorTable(image);
+ QList<QRgb> colorTable = effectiveColorTable(image);
bool isGrayscale = checkGrayscale(colorTable);
if (isGrayscale) {
uint16 photometric = PHOTOMETRIC_MINISBLACK;
diff --git a/tests/auto/tiff/tst_qtiff.cpp b/tests/auto/tiff/tst_qtiff.cpp
index 267a29c..073e77f 100644
--- a/tests/auto/tiff/tst_qtiff.cpp
+++ b/tests/auto/tiff/tst_qtiff.cpp
@@ -552,9 +552,9 @@ void tst_qtiff::multipage_data()
{
QTest::addColumn<QString>("filename");
QTest::addColumn<int>("expectedNumPages");
- QTest::addColumn<QVector<QSize>>("expectedSizes");
+ QTest::addColumn<QList<QSize>>("expectedSizes");
- QVector<QSize> sizes = QVector<QSize>() << QSize(640, 480) << QSize(800, 600) << QSize(320, 240);
+ QList<QSize> sizes = QList<QSize>() << QSize(640, 480) << QSize(800, 600) << QSize(320, 240);
QTest::newRow("3 page TIFF") << ("multipage.tiff") << 3 << sizes;
}
@@ -562,7 +562,7 @@ void tst_qtiff::multipage()
{
QFETCH(QString, filename);
QFETCH(int, expectedNumPages);
- QFETCH(QVector<QSize>, expectedSizes);
+ QFETCH(QList<QSize>, expectedSizes);
QImageReader reader(prefix + filename);
QCOMPARE(reader.imageCount(), expectedNumPages);