SVN_SILENT made messages (.desktop file)
[kdepim.git] / knode / kncollection.cpp
blob50f9ecc78a92ea3612226115fd2faa17ee1a90ee
1 /*
2 KNode, the KDE newsreader
3 Copyright (c) 1999-2005 the KNode authors.
4 See file AUTHORS for details
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 You should have received a copy of the GNU General Public License
11 along with this program; if not, write to the Free Software Foundation,
12 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
15 #include "kncollection.h"
16 #include "kncollectionviewitem.h"
18 KNCollection::KNCollection( KNCollection::Ptr p )
20 p_arent=p;
21 l_istItem=0;
22 c_ount=0;
27 KNCollection::~KNCollection()
29 delete l_istItem;
34 void KNCollection::setListItem(KNCollectionViewItem *i)
36 l_istItem=i;
37 if(i) {
38 i->setCollection( selfPtr() );
39 i->setLabelText( name() );
45 void KNCollection::updateListItem()
47 if ( l_istItem ) {
48 l_istItem->setLabelText( name() );