MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / headerData

Method headerData

syncthingmodel/syncthingfilemodel.cpp:315–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315QVariant 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
340Qt::ItemFlags SyncthingFileModel::flags(const QModelIndex &index) const
341{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected