|
Krita Source Code Documentation
|
#include <kis_timed_signal_threshold.h>
Inheritance diagram for KisTimedSignalThreshold:Classes | |
| struct | Private |
Public Slots | |
| void | forceDone () |
| void | setDelayThreshold (int delay, int cancelDelay=-1) |
| void | setEnabled (bool value) |
| void | start () |
| void | stop () |
Signals | |
| void | timeout () |
Public Member Functions | |
| KisTimedSignalThreshold (int delay, int cancelDelay=-1, QObject *parent=0) | |
| ~KisTimedSignalThreshold () override | |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Emits the timeout() signal if and only if the flow of start() events has been coming for a consecutive delay of milliseconds. If the events were not coming for cancelDelay of milliseconds the counting is dropped and the new period is started.
Definition at line 21 of file kis_timed_signal_threshold.h.
| KisTimedSignalThreshold::KisTimedSignalThreshold | ( | int | delay, |
| int | cancelDelay = -1, | ||
| QObject * | parent = 0 ) |
Definition at line 33 of file kis_timed_signal_threshold.cpp.
|
override |
Definition at line 39 of file kis_timed_signal_threshold.cpp.
|
slot |
Stops counting and emits the signal forcefully
Definition at line 43 of file kis_timed_signal_threshold.cpp.
|
slot |
The period of time, after which the signal will be emitted
Definition at line 75 of file kis_timed_signal_threshold.cpp.
References m_d.
|
slot |
|
slot |
Start/continue counting and if the signal flow is stable enough (longer than delay and shorter than cancelDelay), the timeout signal in emitted.
Definition at line 49 of file kis_timed_signal_threshold.cpp.
References forceDone(), m_d, and stop().
|
slot |
Stops counting the signals flow
Definition at line 62 of file kis_timed_signal_threshold.cpp.
References m_d.
|
signal |
|
private |
Definition at line 62 of file kis_timed_signal_threshold.h.