| 328 | } |
| 329 | |
| 330 | QVariant 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 | |
| 347 | QModelIndex CListFileModel::AddFileTransfer(QSharedPointer<CFileTransfer> f) |
| 348 | { |
no test coverage detected