replace QTime with QElapsedTimer when possible (qt6)

Since Qt5, some methods of QTime [are deprecated](https://doc.qt.io/qt-5/qtime-obsolete.html).

Qt6 remove those methods, thus in two instances we need to use
a [QElapsedTimer](https://doc.qt.io/qt-6/qelapsedtimer.html) instead of a QTime.

QElapsedTimer is available since Qt5.4, and is already used in the source
code.
This commit is contained in:
Ludovic LANGE
2022-09-24 17:54:51 +02:00
parent a3bd67ea99
commit 5a18c611e1
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ private:
DBCHandler *dbcHandler;
QByteArray inputBuffer;
QTimer updateTimer;
QTime *elapsedTime;
QElapsedTimer *elapsedTime;
int framesPerSec;
int rxFrames;
bool inhibitFilterUpdate;