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

Method headerData

Plugins/FileTransfer/ListFileModel.cpp:297–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297QVariant CListFileModel::headerData(int section, Qt::Orientation orientation, int role) const
298{
299 //qDebug(log) << Q_FUNC_INFO << section << orientation << role;
300 if(Qt::DisplayRole != role)
301 return QVariant();
302 if(Qt::Vertical == orientation) {
303 if(m_lstFile.size() <= section || 0 > section)
304 return QVariant();
305 auto p = m_lstFile.at(section);
306 if(p)
307 return p->GetId();
308 return QVariant();
309 }
310 return CFileTransfer::HeaderData(section);
311}
312
313int CListFileModel::rowCount(const QModelIndex &parent) const
314{

Callers

nothing calls this directly

Calls 1

GetIdMethod · 0.45

Tested by

no test coverage detected