#ifndef PYTHONQTWRAPPER_QDRAGMOVEEVENT_H #define PYTHONQTWRAPPER_QDRAGMOVEEVENT_H #include #include #include #include #include #include #include #include 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; }; 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; } QRect answerRect(QDragMoveEvent* theWrappedObject) const; void ignore(QDragMoveEvent* theWrappedObject, const QRect& r); void accept(QDragMoveEvent* theWrappedObject, const QRect& r); }; #endif // PYTHONQTWRAPPER_QDRAGMOVEEVENT_H