PythonQtWrapper_QButtonGroup.cpp
176 lines
| 5.9 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QButtonGroup.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qabstractbutton.h> | ||||
#include <qbuttongroup.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
|
r24 | void PythonQtShell_QButtonGroup::childEvent(QChildEvent* arg__1) | ||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QButtonGroup::staticMetaObject, | ||||
"childEvent(QButtonGroup*,QChildEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QButtonGroup::childEvent(arg__1); | ||||
} | ||||
void PythonQtShell_QButtonGroup::customEvent(QEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QButtonGroup::staticMetaObject, | ||||
"customEvent(QButtonGroup*,QEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QButtonGroup::customEvent(arg__1); | ||||
} | ||||
bool PythonQtShell_QButtonGroup::event(QEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QButtonGroup::staticMetaObject, | ||||
"event(QButtonGroup*,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
returnValue = *((bool *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QButtonGroup::event(arg__1); | ||||
} | ||||
bool PythonQtShell_QButtonGroup::eventFilter(QObject* arg__1, QEvent* arg__2) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QButtonGroup::staticMetaObject, | ||||
"eventFilter(QButtonGroup*,QObject* ,QEvent* )"); | ||||
bool returnValue; | ||||
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
returnValue = *((bool *)args[0]); | ||||
} | ||||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QButtonGroup::eventFilter(arg__1, arg__2); | ||||
} | ||||
void PythonQtShell_QButtonGroup::timerEvent(QTimerEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( | ||||
&PythonQtWrapper_QButtonGroup::staticMetaObject, | ||||
"timerEvent(QButtonGroup*,QTimerEvent* )"); | ||||
void* args[2] = {NULL, (void*)&arg__1}; | ||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QButtonGroup::timerEvent(arg__1); | ||||
} | ||||
|
r13 | QButtonGroup* PythonQtWrapper_QButtonGroup::new_QButtonGroup(QObject* parent) | ||
{ | ||||
|
r24 | return new PythonQtShell_QButtonGroup(parent); } | ||
|
r13 | |||
|
r28 | int PythonQtWrapper_QButtonGroup::id(QButtonGroup* theWrappedObject, QAbstractButton* button) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->id(button); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QButtonGroup::removeButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->removeButton(arg__1); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QButtonGroup::setExclusive(QButtonGroup* theWrappedObject, bool arg__1) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setExclusive(arg__1); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QButtonGroup::addButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->addButton(arg__1); | ||
|
r13 | } | ||
|
r28 | QAbstractButton* PythonQtWrapper_QButtonGroup::checkedButton(QButtonGroup* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->checkedButton(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QButtonGroup::setId(QButtonGroup* theWrappedObject, QAbstractButton* button, int id) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setId(button, id); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QButtonGroup::addButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1, int id) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->addButton(arg__1, id); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QButtonGroup::checkedId(QButtonGroup* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->checkedId(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QButtonGroup::exclusive(QButtonGroup* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->exclusive(); | ||
|
r13 | } | ||
|
r24 | QAbstractButton* PythonQtWrapper_QButtonGroup::button(QButtonGroup* theWrappedObject, int id) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->button(id); | ||
|
r13 | } | ||
|
r28 | QList<QAbstractButton* > PythonQtWrapper_QButtonGroup::buttons(QButtonGroup* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->buttons(); | ||
|
r13 | } | ||