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

Method data

Plugins/FileTransfer/ListFileModel.cpp:330–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330QVariant CListFileModel::data(const QModelIndex &index, int role) const
331{
332 //qDebug(log) << Q_FUNC_INFO << index << role;
333 if (!index.isValid())
334 return QVariant();
335
336 int r = index.row();
337 if(r > m_lstFile.size() || r < 0)
338 return QVariant();
339
340 auto p = m_lstFile.at(r);
341 if(p)
342 return p->Data(index.column(), role);
343
344 return QVariant();
345}
346
347QModelIndex CListFileModel::AddFileTransfer(QSharedPointer<CFileTransfer> f)
348{

Callers 9

slotStartFileTransferMethod · 0.45
GetDesktopSizeMethod · 0.45
slotItemChangedMethod · 0.45
retrieveDataMethod · 0.45
slotClipBoardChangedMethod · 0.45
slotDisconnectedMethod · 0.45
foreachFunction · 0.45

Calls 2

isValidMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected