mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
- 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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user