mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
afd53be6f5
commit
44ddb1411e
2 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue