aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-12-24 10:18:56 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-24 07:24:11 -0800
commit1a933e7e19ba3ded1ab508dfb7ef4f19a1da4519 (patch)
tree7725eef30270b458cc6ad39f058a8356a06629df /qt-ui/profilegraphics.h
parent5e446fd258e8ee200f2b8b19e86374add17b8287 (diff)
downloadsubsurface-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/profilegraphics.h')
-rw-r--r--qt-ui/profilegraphics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h
index c9d1ef2e6..064b4478d 100644
--- a/qt-ui/profilegraphics.h
+++ b/qt-ui/profilegraphics.h
@@ -45,7 +45,7 @@ public slots:
private:
typedef QPair<QGraphicsPixmapItem*, QGraphicsSimpleTextItem*> ToolTip;
- QList<ToolTip> toolTips;
+ QVector<ToolTip> toolTips;
QGraphicsPathItem *background;
QGraphicsLineItem *separator;
QGraphicsSimpleTextItem *title;