| 46 | } |
| 47 | |
| 48 | QVariant CRecentModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 49 | { |
| 50 | if (orientation == Qt::Horizontal && role == Qt::DisplayRole) { |
| 51 | switch (section) { |
| 52 | case Name: return tr("Name"); |
| 53 | case Protocol: return tr("Protocol"); |
| 54 | case Type: return tr("Type"); |
| 55 | case Time: return tr("Time"); |
| 56 | case ID: return tr("ID"); |
| 57 | case File: return tr("File"); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | return QVariant(); |
| 62 | } |
| 63 | |
| 64 | int CRecentModel::rowCount(const QModelIndex &parent) const |
| 65 | { |