Labrador/Desktop Interface/timedtickbox.h

26 lines
433 B
C++

#ifndef TIMEDTICKBOX_H
#define TIMEDTICKBOX_H
#include <QCheckBox>
#include <QTimer>
#include <QDebug>
class timedTickBox : public QCheckBox
{
Q_OBJECT
public:
explicit timedTickBox(QWidget *parent = 0);
bool timerEnabled = true;
int timerLength = 7500;
QTimer *timer = NULL;
signals:
public slots:
void resetTimer();
void timerTick();
void enableTimer(bool enabled);
};
#endif // TIMEDTICKBOX_H