Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
None
-
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).