| 59 | } |
| 60 | |
| 61 | QVariant SyncthingRecentChangesModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 62 | { |
| 63 | switch (orientation) { |
| 64 | case Qt::Horizontal: |
| 65 | switch (role) { |
| 66 | case Qt::DisplayRole: |
| 67 | switch (section) { |
| 68 | case 0: |
| 69 | return tr("Action"); |
| 70 | case 1: |
| 71 | return tr("Device"); |
| 72 | case 2: |
| 73 | return tr("Folder"); |
| 74 | case 3: |
| 75 | return tr("Path"); |
| 76 | } |
| 77 | break; |
| 78 | default:; |
| 79 | } |
| 80 | break; |
| 81 | default:; |
| 82 | } |
| 83 | return QVariant(); |
| 84 | } |
| 85 | |
| 86 | QVariant SyncthingRecentChangesModel::data(const QModelIndex &index, int role) const |
| 87 | { |
nothing calls this directly
no outgoing calls
no test coverage detected