Only recalculate the tooltip if time has changed

Small optimization, but seems to make sense.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-02-19 16:06:16 -08:00
parent 43997d3b36
commit 08490785b2
2 changed files with 8 additions and 2 deletions

View file

@ -56,6 +56,7 @@ private:
QRectF nextRectangle;
DiveCartesianAxis *timeAxis;
plot_info pInfo;
int lastTime;
};
#endif // DIVETOOLTIPITEM_H