PythonQtWrapper_QShortcutEvent.h
32 lines
| 939 B
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QSHORTCUTEVENT_H | ||
#define PYTHONQTWRAPPER_QSHORTCUTEVENT_H | ||||
#include <qevent.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qkeysequence.h> | ||||
florianlink
|
r24 | class PythonQtShell_QShortcutEvent : public QShortcutEvent | ||
{ | ||||
public: | ||||
PythonQtShell_QShortcutEvent(const QKeySequence& key, int id, bool ambiguous = false):QShortcutEvent(key, id, ambiguous),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QShortcutEvent : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QShortcutEvent* new_QShortcutEvent(const QKeySequence& key, int id, bool ambiguous = false); | ||||
void delete_QShortcutEvent(QShortcutEvent* obj) { delete obj; } | ||||
bool isAmbiguous(QShortcutEvent* theWrappedObject) const; | ||||
const QKeySequence& key(QShortcutEvent* theWrappedObject) const; | ||||
florianlink
|
r28 | int shortcutId(QShortcutEvent* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QSHORTCUTEVENT_H | ||||