- Ported propertiesWidget from arborescence.h to new TorrentFiles Tree Model. (Needs to do the same thing for TorrentAddition.h now)

This commit is contained in:
Christophe Dumez
2009-11-11 12:22:48 +00:00
parent 2e2e506162
commit 81658b9648
4 changed files with 31 additions and 229 deletions

View File

@@ -341,7 +341,7 @@ public:
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const {
if (parent.isValid() && parent.column() != 0)
return QModelIndex();
return QModelIndex();
TreeItem *parentItem;
@@ -351,10 +351,11 @@ public:
parentItem = static_cast<TreeItem*>(parent.internalPointer());
TreeItem *childItem = parentItem->child(row);
if (childItem)
if (childItem) {
return createIndex(row, column, childItem);
else
} else {
return QModelIndex();
}
}
QModelIndex parent(const QModelIndex &index) const {