bool StateMachineDebugInterface::isDescendantOf(State ascendant, State state) const { if (state == rootState()) return false; State parent = parentState(state); if (parent == ascendant) return true; return isDescendantOf(ascendant, parent); }
int QtStateMachine::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: started(); break; case 1: stopped(); break; case 2: finished(); break; case 3: start(); break; case 4: stop(); break; case 5: d_func()->_q_start(); break; case 6: d_func()->_q_process(); break; default: ; } _id -= 7; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< QtState**>(_v) = rootState(); break; case 1: *reinterpret_cast< QtAbstractState**>(_v) = initialState(); break; case 2: *reinterpret_cast< QtAbstractState**>(_v) = errorState(); break; case 3: *reinterpret_cast< QString*>(_v) = errorString(); break; } _id -= 4; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 1: setInitialState(*reinterpret_cast< QtAbstractState**>(_v)); break; case 2: setErrorState(*reinterpret_cast< QtAbstractState**>(_v)); break; } _id -= 4; } else if (_c == QMetaObject::ResetProperty) { _id -= 4; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 4; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 4; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 4; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 4; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 4; } #endif // QT_NO_PROPERTIES return _id; }