Details
-
Type:
Suggestion
-
Status: Reported
-
Priority:
P4: Low
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Core: State Machine
-
Labels:None
Description
Hi,
please make UnconditionalTransition publically usable.
Perhaps QUnconditionalTransition, or something.
Why?
I think this may be interesting, since one can then do:
// c++11 QUnconditionalTransition *trans = new QUnconditionalTransition{state}; QObject::connect(checkbox, &QCheckBox::toggled, [](bool leaveImmediate) { trans->setTargetState(leaveImmediate ? state : nullptr); } );
This is an easy way, to conditionally specify
- to leave a state immediately on entering
- or not (if TargetState is nullptr).