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

Method headerData

syncthingmodel/syncthingerrormodel.cpp:54–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54QVariant SyncthingErrorModel::headerData(int section, Qt::Orientation orientation, int role) const
55{
56 switch (orientation) {
57 case Qt::Horizontal:
58 switch (role) {
59 case Qt::DisplayRole:
60 switch (section) {
61 case 0:
62 return tr("Message");
63 case 1:
64 return tr("Time");
65 }
66 break;
67 default:;
68 }
69 break;
70 default:;
71 }
72 return QVariant();
73}
74
75QVariant SyncthingErrorModel::data(const QModelIndex &index, int role) const
76{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected