| 235 | } |
| 236 | |
| 237 | void JudgingDialog::dialogAlert(const QString &msg) { |
| 238 | bool isOnMaxValue = |
| 239 | ui->logViewer->verticalScrollBar()->value() == ui->logViewer->verticalScrollBar()->maximum(); |
| 240 | QTextBlockFormat blockFormat; |
| 241 | blockFormat.setLeftMargin(30); |
| 242 | cursor->insertBlock(blockFormat); |
| 243 | QTextCharFormat format; |
| 244 | format.setFontPointSize(9); |
| 245 | format.setForeground(QBrush(Qt::gray)); |
| 246 | cursor->insertText(msg, format); |
| 247 | QScrollBar *bar = ui->logViewer->verticalScrollBar(); |
| 248 | |
| 249 | if (isOnMaxValue) |
| 250 | bar->setValue(bar->maximum()); |
| 251 | } |
| 252 | |
| 253 | void JudgingDialog::singleSubtaskDependenceFinished(int x, int y, int status) { |
| 254 | bool isOnMaxValue = |
nothing calls this directly
no outgoing calls
no test coverage detected