From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- certmanager/certlistview.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 certmanager/certlistview.h (limited to 'certmanager/certlistview.h') 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 +#include + +/// 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 */ -- cgit v1.2.3