// activate the transition (simulate a click on the button)
currentActionTransition->autoNext();// activating the "Quit" transition enter the final state, which make the state machine to emit the finished() signal
foundNextState=true;
}
++it;
}
// activate currentState
if(currentState){
CAMITK_INFO(tr("Triggering state"))
currentState->trigger();
}
// next state
currentState=nextState;
}
CAMITK_INFO(tr("Quitting autonext and application"))