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

Method dialogAlert

src/judgingdialog.cpp:237–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void 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
253void JudgingDialog::singleSubtaskDependenceFinished(int x, int y, int status) {
254 bool isOnMaxValue =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected