#ifndef INPUTOVERWATCHER_H #define INPUTOVERWATCHER_H #include #include #include 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