##// END OF EJS Templates
added builtin support for variants etc., this will replace the direct includes in PythonQt...
added builtin support for variants etc., this will replace the direct includes in PythonQt git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@129 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r93:7b53f64eae84
Show More
PythonQtWrapper_QKeyEvent.h
40 lines | 1.7 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QKEYEVENT_H
#define PYTHONQTWRAPPER_QKEYEVENT_H
#include <qevent.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qevent.h>
class PythonQtShell_QKeyEvent : public QKeyEvent
{
public:
PythonQtShell_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1):QKeyEvent(type, key, modifiers, text, autorep, count),_wrapper(NULL) {};
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QKeyEvent : public QObject
{ Q_OBJECT
public:
public slots:
QKeyEvent* new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1);
void delete_QKeyEvent(QKeyEvent* obj) { delete obj; }
QString text(QKeyEvent* theWrappedObject) const;
unsigned int nativeVirtualKey(QKeyEvent* theWrappedObject) const;
unsigned int nativeModifiers(QKeyEvent* theWrappedObject) const;
bool hasExtendedInfo(QKeyEvent* theWrappedObject) const;
int key(QKeyEvent* theWrappedObject) const;
QKeyEvent* static_QKeyEvent_createExtendedKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text = QString(), bool autorep = false, ushort count = 1);
bool isAutoRepeat(QKeyEvent* theWrappedObject) const;
Qt::KeyboardModifiers modifiers(QKeyEvent* theWrappedObject) const;
unsigned int nativeScanCode(QKeyEvent* theWrappedObject) const;
int count(QKeyEvent* theWrappedObject) const;
bool matches(QKeyEvent* theWrappedObject, QKeySequence::StandardKey key) const;
};
#endif // PYTHONQTWRAPPER_QKEYEVENT_H