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

Method onOtherTimeControlModeChanged

projects/gui/src/timecontrolwidget.cpp:151–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void TimeControlWidget::onOtherTimeControlModeChanged(Mode mode)
152{
153 if (mode == Hourglass || m_tcMode == Hourglass)
154 {
155 switch (mode)
156 {
157 case Tournament:
158 ui->m_tournamentRadio->setChecked(true);
159 break;
160 case TimePerMove:
161 ui->m_timePerMoveRadio->setChecked(true);
162 break;
163 case Infinite:
164 ui->m_infiniteRadio->setChecked(true);
165 break;
166 case Hourglass:
167 ui->m_hourglassRadio->setChecked(true);
168 break;
169 }
170 }
171}
172
173void TimeControlWidget::setTimeControlMode(Mode mode)
174{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected