diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-22 11:44:14 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-29 19:19:47 +0200 |
commit | 9fa3cf15c8500fba5bbb861f1925160815ae2afd (patch) | |
tree | f779e08446bf302803b27130cf4c92fe46ba68b6 /src/gui/painting/qcolortransfertable_p.h | |
parent | c70c4e42665eb34e677fc51a49552c9af3f58d7a (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/painting/qcolortransfertable_p.h')
-rw-r--r-- | src/gui/painting/qcolortransfertable_p.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/gui/painting/qcolortransfertable_p.h b/src/gui/painting/qcolortransfertable_p.h index c8b2f7bd92..c945b55576 100644 --- a/src/gui/painting/qcolortransfertable_p.h +++ b/src/gui/painting/qcolortransfertable_p.h @@ -54,7 +54,7 @@ #include <QtGui/private/qtguiglobal_p.h> #include "qcolortransferfunction_p.h" -#include <QVector> +#include <QList> #include <cmath> QT_BEGIN_NAMESPACE @@ -66,13 +66,11 @@ public: QColorTransferTable() noexcept : m_tableSize(0) { } - QColorTransferTable(uint32_t size, const QVector<uint8_t> &table) noexcept - : m_tableSize(size) - , m_table8(table) + QColorTransferTable(uint32_t size, const QList<uint8_t> &table) noexcept + : m_tableSize(size), m_table8(table) { } - QColorTransferTable(uint32_t size, const QVector<uint16_t> &table) noexcept - : m_tableSize(size) - , m_table16(table) + QColorTransferTable(uint32_t size, const QList<uint16_t> &table) noexcept + : m_tableSize(size), m_table16(table) { } bool isValid() const @@ -208,8 +206,8 @@ public: friend inline bool operator==(const QColorTransferTable &t1, const QColorTransferTable &t2); uint32_t m_tableSize; - QVector<uint8_t> m_table8; - QVector<uint16_t> m_table16; + QList<uint8_t> m_table8; + QList<uint16_t> m_table16; }; inline bool operator!=(const QColorTransferTable &t1, const QColorTransferTable &t2) |