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

Method GetFileTransfer

Plugins/FileTransfer/ListFileModel.cpp:389–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389QSharedPointer<CFileTransfer> CListFileModel::GetFileTransfer(const QModelIndex &index)
390{
391 if (!index.isValid())
392 return QSharedPointer<CFileTransfer>();
393 int r = index.row();
394 if(0 > r || m_lstFile.size() <= r)
395 return QSharedPointer<CFileTransfer>();
396 return m_lstFile.at(r);
397}
398
399bool CListFileModel::removeRows(int row, int count, const QModelIndex &parent)
400{

Callers 3

foreachFunction · 0.80

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected