Don't use QList if sizeof(item) > void*.

QList is optimized for storing pointer-sized items, thus
a QVector is the better choice for everything else.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-12-24 10:18:56 -02:00 committed by Dirk Hohndel
parent 5e446fd258
commit 1a933e7e19
4 changed files with 10 additions and 9 deletions

View file

@ -4,6 +4,7 @@
#include <QObject>
#include <QPrinter>
#include <QList>
#include <QVector>
class QTableView;
class PrintDialog;
@ -27,7 +28,7 @@ private:
qreal scaleX, scaleY;
QRect pageRect;
QList<QString> tablePrintColumnNames;
QVector<QString> tablePrintColumnNames;
unsigned int tablePrintHeadingBackground;
QList<unsigned int> tablePrintColumnWidths;
unsigned int profilePrintTableMaxH;