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

notelistview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   notelistview.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 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

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