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
@ -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…
x
Reference in New Issue
Block a user