From 08490785b2bc9a40a3a65e2ae1b416f0089d629b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 19 Feb 2014 16:06:16 -0800 Subject: Only recalculate the tooltip if time has changed Small optimization, but seems to make sense. Signed-off-by: Dirk Hohndel --- qt-ui/profile/divetooltipitem.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profile/divetooltipitem.h') 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 -- cgit v1.2.3-70-g09d2