Use QElapsedTimer instead of QTime

This commit is contained in:
Luis Ángel San Martín
2021-10-01 19:56:49 +02:00
parent bdb23de74a
commit b83d7150d7
3 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#ifndef SCROLLMANAGAMENT_H
#define SCROLLMANAGAMENT_H
#include <QTime>
#include <QElapsedTimer>
#include <QWheelEvent>
class ScrollManagement
@ -18,7 +18,7 @@ public:
~ScrollManagement();
private:
QTime *wheelTimer;
QElapsedTimer *wheelTimer;
int wheelAccumulator;
};