PythonQtWrapper_QDropEvent.h
41 lines
| 1.6 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QDROPEVENT_H | ||
#define PYTHONQTWRAPPER_QDROPEVENT_H | ||||
#include <qevent.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qmimedata.h> | ||||
#include <qpoint.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QDropEvent : public QDropEvent | ||
{ | ||||
public: | ||||
PythonQtShell_QDropEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::Drop):QDropEvent(pos, actions, data, buttons, modifiers, type),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QDropEvent : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QDropEvent* new_QDropEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::Drop); | ||||
void delete_QDropEvent(QDropEvent* obj) { delete obj; } | ||||
florianlink
|
r28 | Qt::MouseButtons mouseButtons(QDropEvent* theWrappedObject) const; | ||
florianlink
|
r24 | void acceptProposedAction(QDropEvent* theWrappedObject); | ||
florianlink
|
r28 | Qt::DropAction proposedAction(QDropEvent* theWrappedObject) const; | ||
florianlink
|
r13 | QWidget* source(QDropEvent* theWrappedObject) const; | ||
florianlink
|
r24 | const QPoint& pos(QDropEvent* theWrappedObject) const; | ||
florianlink
|
r28 | Qt::DropAction dropAction(QDropEvent* theWrappedObject) const; | ||
Qt::DropActions possibleActions(QDropEvent* theWrappedObject) const; | ||||
const QMimeData* mimeData(QDropEvent* theWrappedObject) const; | ||||
Qt::KeyboardModifiers keyboardModifiers(QDropEvent* theWrappedObject) const; | ||||
void setDropAction(QDropEvent* theWrappedObject, Qt::DropAction action); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QDROPEVENT_H | ||||