diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-02-05 15:45:23 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-06 06:31:11 -0800 |
commit | 151a90bec0610a12880802234a9159a2b3747722 (patch) | |
tree | 447ea15b71395bc94864cbdf315eceed377660e5 /qt-ui/profile/divetooltipitem.cpp | |
parent | ed230f8aacb2d1bc4076f927240998ca9f1fa8b6 (diff) | |
download | subsurface-151a90bec0610a12880802234a9159a2b3747722.tar.gz |
Big improvement in speed ( callgrind )
This patch makes use of a cache variable instead of creating / accessing a
new one via operator[], because for some reason QGraphicsPolygonItem
doesn't return a reference for polygon and a copy is always made.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetooltipitem.cpp')
-rw-r--r-- | qt-ui/profile/divetooltipitem.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp index ca355b710..26d19ecc3 100644 --- a/qt-ui/profile/divetooltipitem.cpp +++ b/qt-ui/profile/divetooltipitem.cpp @@ -225,7 +225,6 @@ void ToolTipItem::refresh(const QPointF& pos) { clear(); int time = timeAxis->valueAt( pos ); - qDebug() << "time" << time; char buffer[500]; get_plot_details_new(&pInfo, time, buffer, 500); addToolTip(QString(buffer)); |