MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / parent

Method parent

Plugins/FileTransfer/RemoteFileSystemModel.cpp:503–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503QModelIndex 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
517bool CRemoteFileSystemModel::canFetchMore(const QModelIndex &parent) const
518{

Callers 4

RemoveDirMethod · 0.45
setDataMethod · 0.45
foreachFunction · 0.45
IndexOfTabMethod · 0.45

Calls 2

isValidMethod · 0.80
GetParentMethod · 0.80

Tested by

no test coverage detected