diff options
-rw-r--r-- | desktop-widgets/diveplanner.h | 3 | ||||
-rw-r--r-- | profile-widget/divetooltipitem.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/desktop-widgets/diveplanner.h b/desktop-widgets/diveplanner.h index 63bc78eb9..7bb7942ba 100644 --- a/desktop-widgets/diveplanner.h +++ b/desktop-widgets/diveplanner.h @@ -7,6 +7,7 @@ #include <QAbstractButton> #include <QDateTime> #include <QSignalMapper> +#include <QElapsedTimer> class QListView; @@ -34,7 +35,7 @@ slots: void selfRemove(); void changeGas(); private: - QTime t; + QElapsedTimer t; }; #include "ui_diveplanner.h" 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; }; |