MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / setContest

Method setContest

src/judgingdialog.cpp:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void JudgingDialog::setContest(Contest *contest) {
44 curContest = contest;
45 connect(curContest, &Contest::dialogAlert, this, &JudgingDialog::dialogAlert);
46 connect(curContest, &Contest::singleCaseFinished, this, &JudgingDialog::singleCaseFinished);
47 connect(curContest, &Contest::singleSubtaskDependenceFinished, this,
48 &JudgingDialog::singleSubtaskDependenceFinished);
49 connect(curContest, &Contest::taskJudgingStarted, this, &JudgingDialog::taskJudgingStarted);
50 connect(curContest, &Contest::taskJudgedDisplay, this, &JudgingDialog::taskJudgedDisplay);
51 connect(curContest, &Contest::contestantJudgingStart, this, &JudgingDialog::contestantJudgingStart);
52 connect(curContest, &Contest::contestantJudgingFinished, this, &JudgingDialog::contestantJudgingFinished);
53 connect(curContest, &Contest::contestantJudgedDisplay, this, &JudgingDialog::contestantJudgedDisplay);
54 connect(curContest, &Contest::compileError, this, &JudgingDialog::compileError);
55 connect(this, &JudgingDialog::stopJudgingSignal, curContest, &Contest::stopJudgingSlot);
56}
57
58void JudgingDialog::judge(const QList<std::pair<QString, QVector<int>>> &lists) {
59 stopJudging = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected