diff options
Diffstat (limited to 'starter/baghiralinkdrag.h')
-rw-r--r-- | starter/baghiralinkdrag.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/starter/baghiralinkdrag.h b/starter/baghiralinkdrag.h new file mode 100644 index 0000000..3aca9ec --- /dev/null +++ b/starter/baghiralinkdrag.h @@ -0,0 +1,24 @@ +#ifndef _BAGHIRALINKDRAG_H_ +#define _BAGHIRALINKDRAG_H_ + +#include <qdragobject.h> +#include <qstring.h> + +class BaghiraLinkDrag : public QDragObject +{ +// Q_OBJECT + +public: + BaghiraLinkDrag(QString title, QString command, QString icon, int index = -1, QWidget* dragSource = 0); + ~BaghiraLinkDrag(); + static bool decode( const QMimeSource * e, QString * title, QString * command, QString * icon, int * index); + static bool canDecode( const QMimeSource * e); + static void setAccepted( ); + virtual const char * format ( int i = 0 ) const; + virtual QByteArray encodedData ( const char * ) const; + static bool accepted( ); +private: + QByteArray a; +}; + +#endif |