aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-01 18:56:34 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-10 02:37:03 +0900
commit44ddb1411e53d73f9c425b1a9631856435d57ad8 (patch)
treebee15fc9713d3918dfe07df79e5f219b1ac7aef8 /desktop-widgets/diveplanner.h
parentafd53be6f56c9622b4c3d55e6144a82cfa4c1eb1 (diff)
downloadsubsurface-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 'desktop-widgets/diveplanner.h')
-rw-r--r--desktop-widgets/diveplanner.h3
1 files changed, 2 insertions, 1 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"