summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtIdleDetector.h')
-rw-r--r--Swift/QtUI/QtIdleDetector.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/Swift/QtUI/QtIdleDetector.h b/Swift/QtUI/QtIdleDetector.h
index e21e4a8..444fb15 100644
--- a/Swift/QtUI/QtIdleDetector.h
+++ b/Swift/QtUI/QtIdleDetector.h
@@ -2,13 +2,24 @@
#include "Swift/Controllers/IdleDetector.h"
+#include <QObject>
+#include <QPoint>
+#include <QTimer>
+#include <QDateTime>
+
namespace Swift {
-class QtIdleDetector : public IdleDetector {
+class QtIdleDetector : public QObject, public IdleDetector {
+ Q_OBJECT
public:
QtIdleDetector();
virtual ~QtIdleDetector();
virtual void forceNotIdle();
-
-
+ private slots:
+ void handleTimerTick();
+ private:
+ QPoint lastPosition_;
+ QDateTime lastMoveTime_;
+ QTimer timer_;
+ bool signalled_;
};
}