@@ -4540,18 +4540,178 @@ QByteArray PythonQtWrapper_QSignalTransition::signal(QSignalTransition* theWrap
45404540 return ( theWrappedObject->signal ());
45414541}
45424542
4543+ // code from 48
4544+ //
4545+ PythonQtShell_QSocketNotifier::~PythonQtShell_QSocketNotifier () {
4546+ PythonQtPrivate* priv = PythonQt::priv ();
4547+ if (priv) { priv->shellClassDeleted (this ); }
4548+ }
4549+ void PythonQtShell_QSocketNotifier::childEvent (QChildEvent* arg__1)
4550+ {
4551+ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0 )) {
4552+ static PyObject* name = PyString_FromString (" childEvent" );
4553+ PyObject* obj = PyBaseObject_Type.tp_getattro ((PyObject*)_wrapper, name);
4554+ if (obj) {
4555+ static const char * argumentList[] ={" " , " QChildEvent*" };
4556+ static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList (2 , argumentList);
4557+ void * args[2 ] = {NULL , (void *)&arg__1};
4558+ PyObject* result = PythonQtSignalTarget::call (obj, methodInfo, args, true );
4559+ if (result) { Py_DECREF (result); }
4560+ Py_DECREF (obj);
4561+ return ;
4562+ } else {
4563+ PyErr_Clear ();
4564+ }
4565+ }
4566+ QSocketNotifier::childEvent (arg__1);
4567+ }
4568+ void PythonQtShell_QSocketNotifier::customEvent (QEvent* arg__1)
4569+ {
4570+ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0 )) {
4571+ static PyObject* name = PyString_FromString (" customEvent" );
4572+ PyObject* obj = PyBaseObject_Type.tp_getattro ((PyObject*)_wrapper, name);
4573+ if (obj) {
4574+ static const char * argumentList[] ={" " , " QEvent*" };
4575+ static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList (2 , argumentList);
4576+ void * args[2 ] = {NULL , (void *)&arg__1};
4577+ PyObject* result = PythonQtSignalTarget::call (obj, methodInfo, args, true );
4578+ if (result) { Py_DECREF (result); }
4579+ Py_DECREF (obj);
4580+ return ;
4581+ } else {
4582+ PyErr_Clear ();
4583+ }
4584+ }
4585+ QSocketNotifier::customEvent (arg__1);
4586+ }
4587+ bool PythonQtShell_QSocketNotifier::event (QEvent* arg__1)
4588+ {
4589+ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0 )) {
4590+ static PyObject* name = PyString_FromString (" event" );
4591+ PyObject* obj = PyBaseObject_Type.tp_getattro ((PyObject*)_wrapper, name);
4592+ if (obj) {
4593+ static const char * argumentList[] ={" bool" , " QEvent*" };
4594+ static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList (2 , argumentList);
4595+ bool returnValue;
4596+ void * args[2 ] = {NULL , (void *)&arg__1};
4597+ PyObject* result = PythonQtSignalTarget::call (obj, methodInfo, args, true );
4598+ if (result) {
4599+ args[0 ] = PythonQtConv::ConvertPythonToQt (methodInfo->parameters ().at (0 ), result, false , NULL , &returnValue);
4600+ if (args[0 ]!=&returnValue) {
4601+ if (args[0 ]==NULL ) {
4602+ PythonQt::priv ()->handleVirtualOverloadReturnError (" event" , methodInfo, result);
4603+ } else {
4604+ returnValue = *((bool *)args[0 ]);
4605+ }
4606+ }
4607+ }
4608+ if (result) { Py_DECREF (result); }
4609+ Py_DECREF (obj);
4610+ return returnValue;
4611+ } else {
4612+ PyErr_Clear ();
4613+ }
4614+ }
4615+ return QSocketNotifier::event (arg__1);
4616+ }
4617+ bool PythonQtShell_QSocketNotifier::eventFilter (QObject* arg__1, QEvent* arg__2)
4618+ {
4619+ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0 )) {
4620+ static PyObject* name = PyString_FromString (" eventFilter" );
4621+ PyObject* obj = PyBaseObject_Type.tp_getattro ((PyObject*)_wrapper, name);
4622+ if (obj) {
4623+ static const char * argumentList[] ={" bool" , " QObject*" , " QEvent*" };
4624+ static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList (3 , argumentList);
4625+ bool returnValue;
4626+ void * args[3 ] = {NULL , (void *)&arg__1, (void *)&arg__2};
4627+ PyObject* result = PythonQtSignalTarget::call (obj, methodInfo, args, true );
4628+ if (result) {
4629+ args[0 ] = PythonQtConv::ConvertPythonToQt (methodInfo->parameters ().at (0 ), result, false , NULL , &returnValue);
4630+ if (args[0 ]!=&returnValue) {
4631+ if (args[0 ]==NULL ) {
4632+ PythonQt::priv ()->handleVirtualOverloadReturnError (" eventFilter" , methodInfo, result);
4633+ } else {
4634+ returnValue = *((bool *)args[0 ]);
4635+ }
4636+ }
4637+ }
4638+ if (result) { Py_DECREF (result); }
4639+ Py_DECREF (obj);
4640+ return returnValue;
4641+ } else {
4642+ PyErr_Clear ();
4643+ }
4644+ }
4645+ return QSocketNotifier::eventFilter (arg__1, arg__2);
4646+ }
4647+ void PythonQtShell_QSocketNotifier::timerEvent (QTimerEvent* arg__1)
4648+ {
4649+ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0 )) {
4650+ static PyObject* name = PyString_FromString (" timerEvent" );
4651+ PyObject* obj = PyBaseObject_Type.tp_getattro ((PyObject*)_wrapper, name);
4652+ if (obj) {
4653+ static const char * argumentList[] ={" " , " QTimerEvent*" };
4654+ static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList (2 , argumentList);
4655+ void * args[2 ] = {NULL , (void *)&arg__1};
4656+ PyObject* result = PythonQtSignalTarget::call (obj, methodInfo, args, true );
4657+ if (result) { Py_DECREF (result); }
4658+ Py_DECREF (obj);
4659+ return ;
4660+ } else {
4661+ PyErr_Clear ();
4662+ }
4663+ }
4664+ QSocketNotifier::timerEvent (arg__1);
4665+ }
4666+ QSocketNotifier* PythonQtWrapper_QSocketNotifier::new_QSocketNotifier (int socket, QSocketNotifier::Type arg__2, QObject* parent)
4667+ {
4668+ return new PythonQtShell_QSocketNotifier (socket, arg__2, parent); }
45434669
4670+ bool PythonQtWrapper_QSocketNotifier::event (QSocketNotifier* theWrappedObject, QEvent* arg__1)
4671+ {
4672+ return ( ((PythonQtPublicPromoter_QSocketNotifier*)theWrappedObject)->promoted_event (arg__1));
4673+ }
45444674
45454675bool PythonQtWrapper_QSocketNotifier::isEnabled (QSocketNotifier* theWrappedObject) const
45464676{
45474677 return ( theWrappedObject->isEnabled ());
45484678}
45494679
4680+ int PythonQtWrapper_QSocketNotifier::socket (QSocketNotifier* theWrappedObject) const
4681+ {
4682+ return ( theWrappedObject->socket ());
4683+ }
4684+
45504685QSocketNotifier::Type PythonQtWrapper_QSocketNotifier::type (QSocketNotifier* theWrappedObject) const
45514686{
45524687 return ( theWrappedObject->type ());
45534688}
4689+ // end of code from 48
4690+
4691+ // / Hand edited QSocketNotifier code
4692+ /*
4693+ QSocketNotifier* PythonQtWrapper_QSocketNotifier::new_QSocketNotifier(qintptr socket, QSocketNotifier::Type type)
4694+ {
4695+ return new PythonQtShell_QSocketNotifier(socket, type); }
4696+
4697+ int PythonQtShell_QSocketNotifier::qt_metacall(QMetaObject::Call call, int id, void** args) {
4698+ int result = QSocketNotifier::qt_metacall(call, id, args);
4699+ return result >= 0 ? PythonQt::priv()->handleMetaCall(this, _wrapper, call, id, args) : result;
4700+ }
4701+
4702+ bool PythonQtWrapper_QSocketNotifier::isEnabled(QSocketNotifier* theWrappedObject) const
4703+ {
4704+ return ( theWrappedObject->isEnabled());
4705+ }
4706+
4707+ QSocketNotifier::Type PythonQtWrapper_QSocketNotifier::type(QSocketNotifier* theWrappedObject) const
4708+ {
4709+ return ( theWrappedObject->type());
4710+ }
4711+
45544712
4713+ */
4714+ // / end of hand generated code
45554715
45564716
45574717QString PythonQtWrapper_QStandardPaths::static_QStandardPaths_displayName (QStandardPaths::StandardLocation type)
0 commit comments