MCPcopy Create free account
hub / github.com/cutechess/cutechess / headerData

Method headerData

projects/gui/src/engineoptionmodel.cpp:130–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130QVariant EngineOptionModel::headerData(int section, Qt::Orientation orientation,
131 int role) const
132{
133 if (role == Qt::DisplayRole && orientation == Qt::Horizontal)
134 {
135 switch (section)
136 {
137 case 0:
138 return tr("Name");
139 case 1:
140 return tr("Value");
141 case 2:
142 return tr("Alias");
143 default:
144 return QVariant();
145 }
146 }
147
148 return QVariant();
149}
150
151Qt::ItemFlags EngineOptionModel::flags(const QModelIndex& index) const
152{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected