1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-26 11:52:10 +01:00

16 lines
326 B
C++
Raw Normal View History

#include "wizardmodel.h"
WizardModel::WizardModel(QObject *parent) :
QStateMachine(parent)
{
}
WizardState* WizardModel::currentState(){
foreach (QAbstractState *value, this->configuration()){
if(value->parent() != 0){\
return static_cast<WizardState*>(value);
}
}
return NULL;
}