| 313 | } |
| 314 | |
| 315 | QVariant SyncthingFileModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 316 | { |
| 317 | switch (orientation) { |
| 318 | case Qt::Horizontal: |
| 319 | switch (role) { |
| 320 | case Qt::DisplayRole: |
| 321 | switch (section) { |
| 322 | case 0: |
| 323 | return tr("Name"); |
| 324 | case 1: |
| 325 | return tr("Size"); |
| 326 | case 2: |
| 327 | return tr("Last modified"); |
| 328 | case 3: |
| 329 | return tr("Ignore pattern"); |
| 330 | } |
| 331 | break; |
| 332 | default:; |
| 333 | } |
| 334 | break; |
| 335 | default:; |
| 336 | } |
| 337 | return QVariant(); |
| 338 | } |
| 339 | |
| 340 | Qt::ItemFlags SyncthingFileModel::flags(const QModelIndex &index) const |
| 341 | { |
nothing calls this directly
no outgoing calls
no test coverage detected