00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef NoteListView_h
00018 #define NoteListView_h
00019 #include <qlistview.h>
00020 #include <notetreeitem.h>
00021
00022 class NoteListView: public QListView {
00023
00024 public:
00025 NoteListView(QWidget *parent = 0, const char *name = 0):
00026 QListView (parent, name) {};
00027
00028 protected:
00029 void startDrag() {
00030 NoteTreeItem *i=dynamic_cast<NoteTreeItem*>(currentItem());
00031 if(!i->publnote)
00032 QListView::startDrag();
00033 }
00034 };
00035 #endif