summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qplatformprintdevice.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-12-12 11:50:10 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-12-14 13:35:32 +0000
commit2356c173b2952f6ab6767abac12a21688324fcc5 (patch)
treea175168e23e47127e4c979dd99748df82d588da0 /src/printsupport/kernel/qplatformprintdevice.h
parentff2ae36551b75b2c8a2d1f73e4d1e956b4eadb62 (diff)
QPlatformPrintDevice: store QPageSize/QMimeType/int in QList, not QVector
This commit pains me, because we want Qt to migrate away from QList, but the QtPrint API stack (all the way to public API, for QPageSize, and int) is formulated in terms of QList, not QVector, so it makes zero sense to store data in QVectors just to convert to QList on every opportunity. Store QMimeType in QList, too, since that's what QtCore uses. Saves 3KiB in text size (0.7% of QtPrintSupport). Change-Id: I71249f60be517cc06973b38d9ccad7a31f348be3 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/printsupport/kernel/qplatformprintdevice.h')
-rw-r--r--src/printsupport/kernel/qplatformprintdevice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/printsupport/kernel/qplatformprintdevice.h b/src/printsupport/kernel/qplatformprintdevice.h
index 654bb123fb..1cac009660 100644
--- a/src/printsupport/kernel/qplatformprintdevice.h
+++ b/src/printsupport/kernel/qplatformprintdevice.h
@@ -155,7 +155,7 @@ protected:
bool m_supportsCollateCopies;
mutable bool m_havePageSizes;
- mutable QVector<QPageSize> m_pageSizes;
+ mutable QList<QPageSize> m_pageSizes;
bool m_supportsCustomPageSizes;
@@ -163,7 +163,7 @@ protected:
QSize m_maximumPhysicalPageSize;
mutable bool m_haveResolutions;
- mutable QVector<int> m_resolutions;
+ mutable QList<int> m_resolutions;
mutable bool m_haveInputSlots;
mutable QVector<QPrint::InputSlot> m_inputSlots;
@@ -179,7 +179,7 @@ protected:
#ifndef QT_NO_MIMETYPE
mutable bool m_haveMimeTypes;
- mutable QVector<QMimeType> m_mimeTypes;
+ mutable QList<QMimeType> m_mimeTypes;
#endif
};