summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divetooltipitem.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-19 16:06:16 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-19 16:06:16 -0800
commit08490785b2bc9a40a3a65e2ae1b416f0089d629b (patch)
tree0e9167e28e25b89e2368a3b90c9cb5648ed7d079 /qt-ui/profile/divetooltipitem.h
parent43997d3b363034e452931494f6567ff959529b62 (diff)
downloadsubsurface-08490785b2bc9a40a3a65e2ae1b416f0089d629b.tar.gz
Only recalculate the tooltip if time has changed
Small optimization, but seems to make sense. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetooltipitem.h')
-rw-r--r--qt-ui/profile/divetooltipitem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profile/divetooltipitem.h b/qt-ui/profile/divetooltipitem.h
index 860d79310..5deb0001a 100644
--- a/qt-ui/profile/divetooltipitem.h
+++ b/qt-ui/profile/divetooltipitem.h
@@ -56,6 +56,7 @@ private:
QRectF nextRectangle;
DiveCartesianAxis *timeAxis;
plot_info pInfo;
+ int lastTime;
};
#endif // DIVETOOLTIPITEM_H