diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-12-24 10:18:56 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-24 07:24:11 -0800 |
commit | 1a933e7e19ba3ded1ab508dfb7ef4f19a1da4519 (patch) | |
tree | 7725eef30270b458cc6ad39f058a8356a06629df /qt-ui/printlayout.h | |
parent | 5e446fd258e8ee200f2b8b19e86374add17b8287 (diff) | |
download | subsurface-1a933e7e19ba3ded1ab508dfb7ef4f19a1da4519.tar.gz |
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>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r-- | qt-ui/printlayout.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index 077d7ac14..e55d23dd1 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -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; |