PythonQtWrapper_QDragMoveEvent.h
35 lines
| 1.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QDRAGMOVEEVENT_H | ||
#define PYTHONQTWRAPPER_QDRAGMOVEEVENT_H | ||||
#include <qevent.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qmimedata.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QDragMoveEvent : public QDragMoveEvent | ||
{ | ||||
public: | ||||
PythonQtShell_QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::DragMove):QDragMoveEvent(pos, actions, data, buttons, modifiers, type),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QDragMoveEvent : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QDragMoveEvent* new_QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::DragMove); | ||||
void delete_QDragMoveEvent(QDragMoveEvent* obj) { delete obj; } | ||||
florianlink
|
r28 | QRect answerRect(QDragMoveEvent* theWrappedObject) const; | ||
florianlink
|
r24 | void ignore(QDragMoveEvent* theWrappedObject, const QRect& r); | ||
florianlink
|
r13 | void accept(QDragMoveEvent* theWrappedObject, const QRect& r); | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QDRAGMOVEEVENT_H | ||||