PythonQtWrapper_QEvent.cpp
53 lines
| 1.2 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QEvent.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
QEvent* PythonQtWrapper_QEvent::new_QEvent(QEvent::Type type) | ||||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QEvent(type); } | ||
florianlink
|
r13 | |||
florianlink
|
r73 | void PythonQtWrapper_QEvent::accept(QEvent* theWrappedObject) | ||
{ | ||||
( theWrappedObject->accept()); | ||||
} | ||||
QEvent::Type PythonQtWrapper_QEvent::type(QEvent* theWrappedObject) const | ||||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->type()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QEvent::setAccepted(QEvent* theWrappedObject, bool accepted) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setAccepted(accepted)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QEvent::ignore(QEvent* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->ignore()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | int PythonQtWrapper_QEvent::static_QEvent_registerEventType(int hint) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QEvent::registerEventType(hint)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QEvent::spontaneous(QEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->spontaneous()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QEvent::isAccepted(QEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isAccepted()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QEvent::toString(QEvent* obj) { | ||
QString result; | ||||
QDebug d(&result); | ||||
d << obj; | ||||
return result; | ||||
florianlink
|
r13 | } | ||