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

Method headerData

syncthingmodel/syncthingdirectorymodel.cpp:98–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98QVariant SyncthingDirectoryModel::headerData(int section, Qt::Orientation orientation, int role) const
99{
100 switch (orientation) {
101 case Qt::Horizontal:
102 switch (role) {
103 case Qt::DisplayRole:
104 switch (section) {
105 case 0:
106 return tr("ID");
107 case 1:
108 return tr("Status");
109 }
110 break;
111 default:;
112 }
113 break;
114 default:;
115 }
116 return QVariant();
117}
118
119QVariant SyncthingDirectoryModel::data(const QModelIndex &index, int role) const
120{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected