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

Method rowCount

Plugins/FileTransfer/RemoteFileSystemModel.cpp:399–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399int CRemoteFileSystemModel::rowCount(const QModelIndex &parent) const
400{
401 //qDebug(log) << Q_FUNC_INFO << parent;
402 if(!parent.isValid()) return 0;
403 CRemoteFileSystem* pItem = nullptr;
404 pItem = GetRemoteFileSystemFromIndex(parent);
405 if(pItem)
406 return pItem->ChildCount();
407 return 0;
408}
409
410int CRemoteFileSystemModel::columnCount(const QModelIndex &parent) const
411{

Callers

nothing calls this directly

Calls 2

isValidMethod · 0.80
ChildCountMethod · 0.45

Tested by

no test coverage detected