39 , m_timer(new QTimer(this))
52 m_timer(new QTimer(this)),
54 m_slowHandlerMode(slowHandlerMode),
64 const bool wasActive =
m_timer->isActive();
95 const bool isFirstStart = !
m_timer->isActive();
155 bool wasEmitted =
false;
160 const int minInterval = realInterval < 100 ? 0.5 * realInterval : realInterval;
185 }
else if (!isFromTimer) {
194 bool wasEmitted =
false;
213 const int calmDownInterval = 5 *
m_timeout;
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
bool tryEmitSignalSafely()
std::function< bool()> m_idleCallback
QElapsedTimer m_lastEmittedTimer
void setDelay(std::function< bool()> idleCallback, int idleDelay, int timeout)
bool tryEmitOnTick(bool isFromTimer)
SlowHandlerMode m_slowHandlerMode
void setDelayImpl(int delay)
@ FIRST_ACTIVE_POSTPONE_NEXT
#define KIS_SAFE_ASSERT_RECOVER(cond)
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
#define KIS_ASSERT_RECOVER_NOOP(cond)
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)