// The type init slot. static int pyqtWrapperType_init(pyqtWrapperType *self, PyObject *args, PyObject *kwds) { // Let the super-type complete the basic initialisation. if (sipWrapperType_Type->tp_init((PyObject *)self, args, kwds) < 0) return -1; pyqt4ClassTypeDef *pyqt_td = (pyqt4ClassTypeDef *)((sipWrapperType *)self)->type; if (pyqt_td && !sipIsExactWrappedType((sipWrapperType *)self)) { // Create a dynamic meta-object as its base wrapped type has a static // Qt meta-object. if (pyqt_td->qt4_static_metaobject && create_dynamic_metaobject(self) < 0) return -1; } return 0; }
// The type init slot. static int pyqtWrapperType_init(pyqtWrapperType *self, PyObject *args, PyObject *kwds) { // Let the super-type complete the basic initialisation. if (sipWrapperType_Type->tp_init((PyObject *)self, args, kwds) < 0) return -1; const pyqt4ClassPluginDef *pyqt_td = reinterpret_cast<const pyqt4ClassPluginDef *>(sipTypePluginData(((sipWrapperType *)self)->wt_td)); if (pyqt_td && !sipIsExactWrappedType((sipWrapperType *)self)) { // Create a dynamic meta-object as its base wrapped type has a static // Qt meta-object. if (pyqt_td->static_metaobject && create_dynamic_metaobject(self) < 0) return -1; } return 0; }