| 88 | } |
| 89 | |
| 90 | QVariant SyncthingDeviceModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 91 | { |
| 92 | switch (orientation) { |
| 93 | case Qt::Horizontal: |
| 94 | switch (role) { |
| 95 | case Qt::DisplayRole: |
| 96 | switch (section) { |
| 97 | case 0: |
| 98 | return tr("ID"); |
| 99 | case 1: |
| 100 | return tr("Status"); |
| 101 | } |
| 102 | break; |
| 103 | default:; |
| 104 | } |
| 105 | break; |
| 106 | default:; |
| 107 | } |
| 108 | return QVariant(); |
| 109 | } |
| 110 | |
| 111 | QVariant SyncthingDeviceModel::data(const QModelIndex &index, int role) const |
| 112 | { |
nothing calls this directly
no outgoing calls
no test coverage detected