PythonQtWrapper_QDrag.h
55 lines
| 1.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QDRAG_H | ||
#define PYTHONQTWRAPPER_QDRAG_H | ||||
#include <qdrag.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QPixmap> | ||
#include <QPoint> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qdrag.h> | ||||
#include <qlist.h> | ||||
#include <qmimedata.h> | ||||
#include <qobject.h> | ||||
#include <qpixmap.h> | ||||
#include <qpoint.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QDrag : public QDrag | ||
{ | ||||
public: | ||||
PythonQtShell_QDrag(QWidget* dragSource):QDrag(dragSource),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QDrag : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QDrag* new_QDrag(QWidget* dragSource); | ||||
void delete_QDrag(QDrag* obj) { delete obj; } | ||||
florianlink
|
r24 | Qt::DropAction exec(QDrag* theWrappedObject, Qt::DropActions supportedActions = Qt::MoveAction); | ||
florianlink
|
r28 | void setHotSpot(QDrag* theWrappedObject, const QPoint& hotspot); | ||
florianlink
|
r73 | QMimeData* mimeData(QDrag* theWrappedObject) const; | ||
QPixmap pixmap(QDrag* theWrappedObject) const; | ||||
florianlink
|
r28 | void setMimeData(QDrag* theWrappedObject, QMimeData* data); | ||
florianlink
|
r73 | void setDragCursor(QDrag* theWrappedObject, const QPixmap& cursor, Qt::DropAction action); | ||
QWidget* target(QDrag* theWrappedObject) const; | ||||
Qt::DropAction exec(QDrag* theWrappedObject, Qt::DropActions supportedActions, Qt::DropAction defaultAction); | ||||
void setPixmap(QDrag* theWrappedObject, const QPixmap& arg__1); | ||||
QPoint hotSpot(QDrag* theWrappedObject) const; | ||||
florianlink
|
r28 | QWidget* source(QDrag* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QDRAG_H | ||||