18 using Action = std::function<void()>;
ConditionalState(const QString &stateName, QState *parent, Predicate predicate, Action action=Action())
void setPredicate(Predicate predicate)
Set the predicate.
void setAction(Action action)
Set the action.
void skipped()
Emitted when the predicate returns false and the state is skipped.
std::function< void()> Action
std::function< bool()> Predicate
QString stateName() const
QGCState(const QString &stateName, QState *parentState)