diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-01 18:56:34 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | 44ddb1411e53d73f9c425b1a9631856435d57ad8 (patch) | |
tree | bee15fc9713d3918dfe07df79e5f219b1ac7aef8 /profile-widget/divetooltipitem.h | |
parent | afd53be6f56c9622b4c3d55e6144a82cfa4c1eb1 (diff) | |
download | subsurface-44ddb1411e53d73f9c425b1a9631856435d57ad8.tar.gz |
code cleanup: use QElapsedTimer instead of QTime
Newer versions of Qt deprecate using QTime as a timer.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/divetooltipitem.h')
-rw-r--r-- | profile-widget/divetooltipitem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/divetooltipitem.h b/profile-widget/divetooltipitem.h index 0ae399bcb..268159621 100644 --- a/profile-widget/divetooltipitem.h +++ b/profile-widget/divetooltipitem.h @@ -7,7 +7,7 @@ #include <QPair> #include <QRectF> #include <QIcon> -#include <QTime> +#include <QElapsedTimer> #include "core/display.h" class DiveCartesianAxis; @@ -61,7 +61,7 @@ private: DiveCartesianAxis *timeAxis; plot_info pInfo; int lastTime; - QTime refreshTime; + QElapsedTimer refreshTime; QList<QGraphicsItem*> oldSelection; }; |