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

Method headerData

syncthingmodel/syncthingdevicemodel.cpp:90–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90QVariant SyncthingDeviceModel::headerData(int section, Qt::Orientation orientation, int role) const
91{
92 switch (orientation) {
93 case Qt::Horizontal:
94 switch (role) {
95 case Qt::DisplayRole:
96 switch (section) {
97 case 0:
98 return tr("ID");
99 case 1:
100 return tr("Status");
101 }
102 break;
103 default:;
104 }
105 break;
106 default:;
107 }
108 return QVariant();
109}
110
111QVariant SyncthingDeviceModel::data(const QModelIndex &index, int role) const
112{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected