34 using Action = std::function<void()>;
67 float _fixedProgress = 0.0f;
70 bool _useCallback =
false;
void onEnter() override
Override to perform actions on state entry.
float progress() const
Get the current progress value.
void progressChanged(float progress)
Emitted when the state is entered with the current progress value.
ProgressState(const QString &stateName, QState *parent, float progress, Action action=nullptr)
std::function< void()> Action
void setProgress(float progress)
Set a fixed progress value.
void setProgressCallback(ProgressCallback callback)
Set a progress callback.
std::function< float()> ProgressCallback
QString stateName() const
QGCState(const QString &stateName, QState *parentState)