- Completed port to TorrentFilesModel. Got rid or old arborescense.h

This commit is contained in:
Christophe Dumez
2009-11-11 14:06:07 +00:00
parent a03c1d3d50
commit ea2f5df95f
4 changed files with 20 additions and 469 deletions

View File

@@ -273,6 +273,11 @@ public:
return prio;
}
bool allFiltered() const {
if(!rootItem->childCount()) return true;
return (rootItem->child(0)->getPriority() == IGNORED);
}
int columnCount(const QModelIndex &parent=QModelIndex()) const {
if (parent.isValid())
return static_cast<TreeItem*>(parent.internalPointer())->columnCount();