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

Method headerData

syncthingmodel/syncthingrecentchangesmodel.cpp:61–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61QVariant SyncthingRecentChangesModel::headerData(int section, Qt::Orientation orientation, int role) const
62{
63 switch (orientation) {
64 case Qt::Horizontal:
65 switch (role) {
66 case Qt::DisplayRole:
67 switch (section) {
68 case 0:
69 return tr("Action");
70 case 1:
71 return tr("Device");
72 case 2:
73 return tr("Folder");
74 case 3:
75 return tr("Path");
76 }
77 break;
78 default:;
79 }
80 break;
81 default:;
82 }
83 return QVariant();
84}
85
86QVariant SyncthingRecentChangesModel::data(const QModelIndex &index, int role) const
87{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected