diff options
| author | Alexis Maiquez Murcia <almamu@almamu.com> | 2019-02-20 09:57:51 +0100 |
|---|---|---|
| committer | Alexis Maiquez Murcia <almamu@almamu.com> | 2019-02-20 09:57:51 +0100 |
| commit | 959357b391dc5d561788f50d0b84ddc11fefd478 (patch) | |
| tree | e4061246005f71644512f4ff6402a34814816faf /src/sensor.h | |
| parent | d843e6a66a11e07595c8c4964fb8a1d343172990 (diff) | |
| download | lead-959357b391dc5d561788f50d0b84ddc11fefd478.tar lead-959357b391dc5d561788f50d0b84ddc11fefd478.tar.gz lead-959357b391dc5d561788f50d0b84ddc11fefd478.zip | |
Added debug mode
This allows the user to display the screen names, the sensors activated and the status of those sensors:
red -> waiting for mouse to enter
yellow -> waiting for delay timer to reach 0
green -> fired the command
Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
Diffstat (limited to 'src/sensor.h')
| -rw-r--r-- | src/sensor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sensor.h b/src/sensor.h index bc4857b..4b86690 100644 --- a/src/sensor.h +++ b/src/sensor.h @@ -41,7 +41,7 @@ class Sensor : public QWidget Q_OBJECT public: - explicit Sensor(int x, int y, int w, int h, QString enterAction, QString exitAction, int enterInterval, int exitInterval); + explicit Sensor(int x, int y, int w, int h, QString enterAction, QString exitAction, int enterInterval, int exitInterval, bool debugMode); ~Sensor(); protected: @@ -56,6 +56,7 @@ private: int enterInterval; int exitInterval; bool canTriggerExit; + bool debugMode; public slots: void activateEnter(); |
