21 #include <tdefileitem.h>
22 #include <kicontheme.h>
24 #include "tdefiletreeviewitem.h"
32 : TDEListViewItem( parent ),
33 m_tdefileitem( item ),
37 setPixmap(0, item->pixmap( TDEIcon::SizeSmall ));
38 setText( 0, item->text());
45 :TDEListViewItem( (TQListView*)parent ),
50 setPixmap(0, item->pixmap( TDEIcon::SizeSmall ));
51 setText( 0, item->text());
54 KFileTreeViewItem::~KFileTreeViewItem()
57 m_tdefileitem->removeExtraData( m_branch );
67 m_wasListed = wasListed;
72 return m_tdefileitem ? m_tdefileitem->url() : KURL();
77 return m_tdefileitem ? m_tdefileitem->url().path() : TQString::null;
82 return m_tdefileitem ? m_tdefileitem->isDir() :
false;
void setListed(bool wasListed)
set the flag if the directory was already listed.
This is the branch class of the KFileTreeView, which represents one branch in the treeview.
bool alreadyListed() const
The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...
An item for a KFileTreeView that knows about its own KFileItem.