| 295 | } |
| 296 | |
| 297 | QVariant 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 | |
| 313 | int CListFileModel::rowCount(const QModelIndex &parent) const |
| 314 | { |