PythonQtWrapper_QKeyEvent.cpp
67 lines
| 2.2 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QKeyEvent.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qevent.h> | ||||
QKeyEvent* PythonQtWrapper_QKeyEvent::new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text, bool autorep, ushort count) | ||||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QKeyEvent(type, key, modifiers, text, autorep, count); } | ||
florianlink
|
r13 | |||
florianlink
|
r73 | QString PythonQtWrapper_QKeyEvent::text(QKeyEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->text()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | unsigned int PythonQtWrapper_QKeyEvent::nativeVirtualKey(QKeyEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->nativeVirtualKey()); | ||
} | ||||
unsigned int PythonQtWrapper_QKeyEvent::nativeModifiers(QKeyEvent* theWrappedObject) const | ||||
{ | ||||
return ( theWrappedObject->nativeModifiers()); | ||||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QKeyEvent::hasExtendedInfo(QKeyEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->hasExtendedInfo()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | int PythonQtWrapper_QKeyEvent::key(QKeyEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->key()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QKeyEvent* PythonQtWrapper_QKeyEvent::static_QKeyEvent_createExtendedKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text, bool autorep, ushort count) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QKeyEvent::createExtendedKeyEvent(type, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | bool PythonQtWrapper_QKeyEvent::isAutoRepeat(QKeyEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isAutoRepeat()); | ||
florianlink
|
r13 | } | ||
Qt::KeyboardModifiers PythonQtWrapper_QKeyEvent::modifiers(QKeyEvent* theWrappedObject) const | ||||
{ | ||||
florianlink
|
r73 | return ( theWrappedObject->modifiers()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | unsigned int PythonQtWrapper_QKeyEvent::nativeScanCode(QKeyEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->nativeScanCode()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | int PythonQtWrapper_QKeyEvent::count(QKeyEvent* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->count()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QKeyEvent::matches(QKeyEvent* theWrappedObject, QKeySequence::StandardKey key) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->matches(key)); | ||
florianlink
|
r13 | } | ||