PythonQtWrapper_QAccessibleBridge.cpp
48 lines
| 1.8 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QAccessibleBridge.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qaccessible.h> | ||||
florianlink
|
r24 | void PythonQtShell_QAccessibleBridge::notifyAccessibilityUpdate(int arg__1, QAccessibleInterface* arg__2, int arg__3) | ||
florianlink
|
r13 | { | ||
florianlink
|
r24 | if (_wrapper) { | ||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notifyAccessibilityUpdate"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QAccessibleBridge::staticMetaObject, | ||||
"notifyAccessibilityUpdate(QAccessibleBridge*,int ,QAccessibleInterface* ,int )"); | ||||
void* args[4] = {NULL, (void*)&arg__1, (void*)&arg__2, (void*)&arg__3}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
florianlink
|
r13 | } | ||
florianlink
|
r24 | |||
} | ||||
void PythonQtShell_QAccessibleBridge::setRootObject(QAccessibleInterface* arg__1) | ||||
florianlink
|
r13 | { | ||
florianlink
|
r24 | if (_wrapper) { | ||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootObject"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QAccessibleBridge::staticMetaObject, | ||||
"setRootObject(QAccessibleBridge*,QAccessibleInterface* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
florianlink
|
r13 | } | ||
florianlink
|
r24 | QAccessibleBridge* PythonQtWrapper_QAccessibleBridge::new_QAccessibleBridge() | ||
{ | ||||
return new PythonQtShell_QAccessibleBridge(); } | ||||
florianlink
|
r13 | |||