| 52 | } |
| 53 | |
| 54 | QVariant SyncthingErrorModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 55 | { |
| 56 | switch (orientation) { |
| 57 | case Qt::Horizontal: |
| 58 | switch (role) { |
| 59 | case Qt::DisplayRole: |
| 60 | switch (section) { |
| 61 | case 0: |
| 62 | return tr("Message"); |
| 63 | case 1: |
| 64 | return tr("Time"); |
| 65 | } |
| 66 | break; |
| 67 | default:; |
| 68 | } |
| 69 | break; |
| 70 | default:; |
| 71 | } |
| 72 | return QVariant(); |
| 73 | } |
| 74 | |
| 75 | QVariant SyncthingErrorModel::data(const QModelIndex &index, int role) const |
| 76 | { |
nothing calls this directly
no outgoing calls
no test coverage detected