static PyObject *meth_QEvent_setAccepted(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { bool a0; QEvent *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QEvent, &sipCpp, &a0)) { sipCpp->setAccepted(a0); Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QEvent, sipName_setAccepted, doc_QEvent_setAccepted); return NULL; }
void QEventProto::setAccepted(bool accepted) { QEvent *item = qscriptvalue_cast<QEvent*>(thisObject()); if (item) item->setAccepted(accepted); }