00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef dragnoteslistview_h
00018 #define dragnoteslistview_h
00019
00020 #include <qlistview.h>
00021 #include <qdragobject.h>
00022 #include "notetreeitem.h"
00023
00024 class DragNotesListView: public QListView {
00025 Q_OBJECT
00026
00027 public:
00028 DragNotesListView(QWidget *parent=0, const char *name=0,WFlags f = 0): QListView(parent, name, f) {};
00029
00030 protected:
00031 virtual QDragObject *dragObject() {
00032 NoteTreeItem *i=dynamic_cast<NoteTreeItem*>(currentItem());
00033 Q_ASSERT(i);
00034 return new QTextDrag(i->url(), this);
00035 }
00036 };
00037
00038 #endif