40 template<
typename Func>
43 QAbstractState* target,
47 , _retryAction(std::move(retryAction))
50 setTargetState(target);
54 void reset() { _retryCount = 0; }
QGCSignalTransition(QState *sourceState=nullptr)
void onTransition(QEvent *event) override
Called when transition fires (after max retries).
int retryCount() const
Get current retry count.
std::function< void()> RetryAction
void reset()
Reset retry count (call when re-entering the source state).
int maxRetries() const
Get max retries setting.
RetryTransition(const typename QtPrivate::FunctionPointer< Func >::Object *sender, Func signalFn, QAbstractState *target, RetryAction retryAction, int maxRetries=1)
bool eventTest(QEvent *event) override