Merge PR #3: Don't use deprecated QTime::restart
This commit is contained in:
commit
2952cb168d
@ -31,7 +31,7 @@
|
||||
#ifndef GPIOBUTTON_H
|
||||
#define GPIOBUTTON_H
|
||||
|
||||
#include <QTime>
|
||||
#include <QElapsedTimer>
|
||||
#include <QTimer>
|
||||
#include <QObject>
|
||||
|
||||
@ -67,7 +67,7 @@ private:
|
||||
GpioMonitor *m_monitor = nullptr;
|
||||
QTimer *m_timer = nullptr;
|
||||
|
||||
QTime m_time;
|
||||
QElapsedTimer m_time;
|
||||
|
||||
signals:
|
||||
void clicked();
|
||||
|
||||
Reference in New Issue
Block a user