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

Method headerData

projects/gui/src/engineconfigurationmodel.cpp:119–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119QVariant EngineConfigurationModel::headerData(int section, Qt::Orientation orientation,
120 int role) const
121{
122 if (role == Qt::DisplayRole && orientation == Qt::Horizontal)
123 {
124 switch (section)
125 {
126 case NameColumn:
127 return tr("Name");
128 case CommandColumn:
129 return tr("Command");
130 case WorkdirColumn:
131 return tr("Working Directory");
132 case ProtocolColumn:
133 return tr("Protocol");
134 case VariantsColumn:
135 return tr("Variants");
136 default:
137 return QVariant();
138 }
139 }
140
141 return QVariant();
142}
143
144void EngineConfigurationModel::onEngineAdded(int index)
145{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected