| 284 | } |
| 285 | |
| 286 | void 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 | |
| 301 | void JudgingDialog::taskJudgedDisplay(const QString &taskName, const QList<QList<int>> &scoreList, |
| 302 | const int mxScore) { |
nothing calls this directly
no outgoing calls
no test coverage detected