00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 ***************************************************************************/ 00009 00010 #include "olistviewitem.h" 00011 00012 OListViewItem::OListViewItem(OListViewItem *parent) 00013 : QListViewItem(parent) 00014 { 00015 } 00016 00017 OListViewItem::OListViewItem(OListViewItem *parent, QString name) 00018 : QListViewItem(parent,name) 00019 { 00020 } 00021 00022 OListViewItem::OListViewItem(QListView *parent, QString name) 00023 : QListViewItem(parent, name) 00024 { 00025 } 00026 00027 OListViewItem::~OListViewItem() 00028 { 00029 } 00030 00031 void OListViewItem::clearList() 00032 { 00033 QListViewItem *item = firstChild(); 00034 QListViewItem *toDel; 00035 while ( item != 0 ) { 00036 toDel = item; 00037 item = item->nextSibling(); 00038 delete toDel; 00039 } 00040 } 00041
1.4.2