summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-22 11:44:14 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-29 19:19:47 +0200
commit9fa3cf15c8500fba5bbb861f1925160815ae2afd (patch)
treef779e08446bf302803b27130cf4c92fe46ba68b6 /src/gui/image/qimage.h
parentc70c4e42665eb34e677fc51a49552c9af3f58d7a (diff)
Use QList instead of QVector in gui
Applied to headers only. Source file to be changed separately. Task-number: QTBUG-84469 Change-Id: Ic08a899321eaffc46b8461aaee3dbaa4d2c727a9 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/image/qimage.h')
-rw-r--r--src/gui/image/qimage.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h
index f5d034e1e7..b8f2dd8faf 100644
--- a/src/gui/image/qimage.h
+++ b/src/gui/image/qimage.h
@@ -166,7 +166,8 @@ public:
else
return convertToFormat_helper(f, flags);
}
- Q_REQUIRED_RESULT QImage convertToFormat(Format f, const QVector<QRgb> &colorTable, Qt::ImageConversionFlags flags = Qt::AutoColor) const;
+ Q_REQUIRED_RESULT QImage convertToFormat(Format f, const QList<QRgb> &colorTable,
+ Qt::ImageConversionFlags flags = Qt::AutoColor) const;
bool reinterpretAsFormat(Format f);
void convertTo(Format f, Qt::ImageConversionFlags flags = Qt::AutoColor);
@@ -216,8 +217,8 @@ public:
void setPixelColor(int x, int y, const QColor &c);
void setPixelColor(const QPoint &pt, const QColor &c);
- QVector<QRgb> colorTable() const;
- void setColorTable(const QVector<QRgb> &colors);
+ QList<QRgb> colorTable() const;
+ void setColorTable(const QList<QRgb> &colors);
qreal devicePixelRatio() const;
void setDevicePixelRatio(qreal scaleFactor);