forked from apsystems/GrblHoming
-
Notifications
You must be signed in to change notification settings - Fork 185
Expand file tree
/
Copy pathtimer.h
More file actions
36 lines (27 loc) · 628 Bytes
/
timer.h
File metadata and controls
36 lines (27 loc) · 628 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/****************************************************************
* timer.h
* GrblHoming - zapmaker fork on github
*
* 15 Nov 2012
* GPL License (see LICENSE file)
* Software is provided AS-IS
****************************************************************/
#ifndef TIMER_H
#define TIMER_H
#include <QTime>
class Timer : public QObject
{
Q_OBJECT
public:
explicit Timer(QObject *parent = 0);
signals:
void setRuntime(QString timestr);
public slots:
void resetTimer(bool timeIt);
protected:
void timerEvent(QTimerEvent *event);
private:
QTime timer;
bool timing;
};
#endif // TIMER_H