// Return the QMetaObject for an enum type's scope. static const QMetaObject *get_scope_qmetaobject(const Chimera *ct) { // Check it is an enum. if (!ct->isEnum()) return 0; // Check it has a scope. const sipTypeDef *td = sipTypeScope(ct->typeDef()); if (!td) return 0; // Check the scope is wrapped by PyQt. if (!qpycore_is_pyqt4_class(td)) return 0; return get_qmetaobject((pyqtWrapperType *)sipTypeAsPyTypeObject(td)); }
// Set the internal flag flag. void Chimera::set_flag() { if (qpycore_is_pyqt4_class(_type)) _is_flag = ((pyqt4ClassTypeDef *)_type)->qt4_flags & 0x01; }