diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-01-16 16:45:13 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-17 08:07:14 +1300 |
commit | ac40c458facfa4f641c1cf2a2384d955431cdb7c (patch) | |
tree | 4da3500a0be84e348a5516e2a784bbd6c5223199 /qt-ui/profile/divetooltipitem.h | |
parent | 67865a86be1f22231037d2209baa731fac55ad4e (diff) | |
download | subsurface-ac40c458facfa4f641c1cf2a2384d955431cdb7c.tar.gz |
Reduce the refresh rate of the toolTipItem to 25fps.
This reduces a lot of CPU time and makes the overall use of the tooltip a
breeze.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetooltipitem.h')
-rw-r--r-- | qt-ui/profile/divetooltipitem.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profile/divetooltipitem.h b/qt-ui/profile/divetooltipitem.h index 6235ec8d9..4fa7ec2d7 100644 --- a/qt-ui/profile/divetooltipitem.h +++ b/qt-ui/profile/divetooltipitem.h @@ -6,6 +6,7 @@ #include <QPair> #include <QRectF> #include <QIcon> +#include <QTime> #include "display.h" class DiveCartesianAxis; @@ -59,7 +60,7 @@ private: DiveCartesianAxis *timeAxis; plot_info pInfo; int lastTime; - + QTime refreshTime; QList<QGraphicsItem*> oldSelection; }; |