You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
484 B
32 lines
484 B
14 years ago
|
|
||
|
#ifndef UBIDLETIMER_H_
|
||
|
#define UBIDLETIMER_H_
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QDateTime>
|
||
|
|
||
|
class QEvent;
|
||
|
|
||
|
class UBIdleTimer : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
|
||
|
UBIdleTimer(QObject *parent = 0);
|
||
|
virtual ~UBIdleTimer();
|
||
|
|
||
|
protected:
|
||
|
|
||
|
bool eventFilter(QObject *obj, QEvent *event);
|
||
|
virtual void timerEvent(QTimerEvent *event);
|
||
|
|
||
|
private:
|
||
|
|
||
|
QDateTime mLastInputEventTime;
|
||
|
bool mCursorIsHidden;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif /* UBIDLETIMER_H_ */
|