/*! \reimp */ bool QEventTransition::eventTest(QEvent *event) { Q_D(const QEventTransition); if (event->type() == QEvent::StateMachineWrapped) { QStateMachine::WrappedEvent *we = static_cast<QStateMachine::WrappedEvent*>(event); return (we->object() == d->object) && (we->event()->type() == d->eventType); } return false; }
static PyObject *meth_QStateMachine_WrappedEvent_object(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { QStateMachine::WrappedEvent *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStateMachine_WrappedEvent, &sipCpp)) { QObject *sipRes; Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->object(); Py_END_ALLOW_THREADS return sipConvertFromType(sipRes,sipType_QObject,NULL); } }