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

Method taskJudgingStarted

src/judgingdialog.cpp:286–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void JudgingDialog::taskJudgingStarted(const QString &taskName) {
287 bool isOnMaxValue =
288 ui->logViewer->verticalScrollBar()->value() == ui->logViewer->verticalScrollBar()->maximum();
289 QTextBlockFormat blockFormat;
290 blockFormat.setLeftMargin(15);
291 cursor->insertBlock(blockFormat);
292 QTextCharFormat charFormat;
293 charFormat.setFontPointSize(10);
294 cursor->insertText(tr("Start judging task %1").arg(taskName), charFormat);
295 QScrollBar *bar = ui->logViewer->verticalScrollBar();
296
297 if (isOnMaxValue)
298 bar->setValue(bar->maximum());
299}
300
301void JudgingDialog::taskJudgedDisplay(const QString &taskName, const QList<QList<int>> &scoreList,
302 const int mxScore) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected