inputoverwatcher.h
424 Bytes
#ifndef INPUTOVERWATCHER_H
#define INPUTOVERWATCHER_H
#include <QObject>
#include <QEvent>
#include <QTimer>
class InputOverwatcher : public QObject
{
Q_OBJECT
public:
explicit InputOverwatcher(QObject *parent = 0);
bool eventFilter(QObject *watched, QEvent *event);
signals:
public slots:
void setDelay(int mins);
void lowerBacklight();
private:
QTimer timer;
};
#endif // INPUTOVERWATCHER_H