Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

dragnoteslistview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   dragnoteslistview.h                                                                   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   Read the file COPYING for details.                                    *
00011  *                                                                         *
00012  *   copyright: (C) 2003 by Jan Mueller                                    *
00013  *   email: janmueller7@hotmail.com                                        *
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

Generated on Sat Mar 27 19:20:38 2004 for Literature by doxygen 1.3.6-20040222