summaryrefslogtreecommitdiffstats
path: root/certmanager/certlistview.h
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/certlistview.h')
-rw-r--r--certmanager/certlistview.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/certmanager/certlistview.h b/certmanager/certlistview.h
new file mode 100644
index 00000000..311b4205
--- /dev/null
+++ b/certmanager/certlistview.h
@@ -0,0 +1,28 @@
+#ifndef CERTLISTVIEW_H
+#define CERTLISTVIEW_H
+
+#include <ui/keylistview.h>
+#include <kurl.h>
+
+/// We need to derive from Kleo::KeyListView simply to add support for drop events
+class CertKeyListView : public Kleo::KeyListView {
+ Q_OBJECT
+
+public:
+ CertKeyListView( const ColumnStrategy * strategy,
+ const DisplayStrategy * display=0,
+ QWidget * parent=0, const char * name=0, WFlags f=0 );
+
+signals:
+ void dropped( const KURL::List& urls );
+
+protected:
+ virtual void contentsDragEnterEvent ( QDragEnterEvent * );
+ virtual void contentsDragMoveEvent( QDragMoveEvent * );
+ virtual void contentsDragLeaveEvent( QDragLeaveEvent * );
+ virtual void contentsDropEvent ( QDropEvent * );
+
+};
+
+
+#endif /* CERTLISTVIEW_H */