| 96 | } |
| 97 | |
| 98 | QVariant SyncthingDirectoryModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 99 | { |
| 100 | switch (orientation) { |
| 101 | case Qt::Horizontal: |
| 102 | switch (role) { |
| 103 | case Qt::DisplayRole: |
| 104 | switch (section) { |
| 105 | case 0: |
| 106 | return tr("ID"); |
| 107 | case 1: |
| 108 | return tr("Status"); |
| 109 | } |
| 110 | break; |
| 111 | default:; |
| 112 | } |
| 113 | break; |
| 114 | default:; |
| 115 | } |
| 116 | return QVariant(); |
| 117 | } |
| 118 | |
| 119 | QVariant SyncthingDirectoryModel::data(const QModelIndex &index, int role) const |
| 120 | { |
nothing calls this directly
no outgoing calls
no test coverage detected