| 501 | } |
| 502 | |
| 503 | QModelIndex CRemoteFileSystemModel::parent(const QModelIndex &child) const |
| 504 | { |
| 505 | //qDebug(log) << Q_FUNC_INFO << child; |
| 506 | if (!child.isValid()) |
| 507 | return QModelIndex(); |
| 508 | CRemoteFileSystem* pItem = GetRemoteFileSystemFromIndex(child); |
| 509 | if(!pItem) |
| 510 | return QModelIndex(); |
| 511 | CRemoteFileSystem* pItemParent = pItem->GetParent(); |
| 512 | if(pItemParent) |
| 513 | return index(pItemParent); |
| 514 | return QModelIndex(); |
| 515 | } |
| 516 | |
| 517 | bool CRemoteFileSystemModel::canFetchMore(const QModelIndex &parent) const |
| 518 | { |