summaryrefslogtreecommitdiffstats
path: root/starter/baghiralinkdrag.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-21 20:35:05 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-21 20:35:05 +0100
commit066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce (patch)
tree4cb26eb8ace976f7d0c8607dc2d3de2b5107670c /starter/baghiralinkdrag.h
downloadtde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.tar.gz
tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.zip
Initial import of baghira 0.8
Diffstat (limited to 'starter/baghiralinkdrag.h')
-rw-r--r--starter/baghiralinkdrag.h24
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