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

Method TimeControlWidget

projects/gui/src/timecontrolwidget.cpp:23–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23TimeControlWidget::TimeControlWidget(QWidget* parent)
24 : QWidget(parent),
25 ui(new Ui::TimeControlWidget),
26 m_tcMode(Tournament)
27{
28 ui->setupUi(this);
29
30 connect(ui->m_tournamentRadio, &QRadioButton::toggled, [=](bool checked)
31 {
32 if (checked)
33 setTimeControlMode(Tournament);
34 });
35 connect(ui->m_timePerMoveRadio, &QRadioButton::toggled, [=](bool checked)
36 {
37 if (checked)
38 setTimeControlMode(TimePerMove);
39 });
40 connect(ui->m_infiniteRadio, &QRadioButton::toggled, [=](bool checked)
41 {
42 if (checked)
43 setTimeControlMode(Infinite);
44 });
45 connect(ui->m_hourglassRadio, &QRadioButton::toggled, [=](bool checked)
46 {
47 if (checked)
48 setTimeControlMode(Hourglass);
49 });
50}
51
52void TimeControlWidget::init(const TimeControl& tc)
53{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected