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

Method exportStatisticsHtml

src/statisticsbrowser.cpp:389–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389void StatisticsBrowser::exportStatisticsHtml(QWidget *widget, const QString &fileName) {
390 QFile file(fileName);
391
392 if (! file.open(QFile::WriteOnly)) {
393 QMessageBox::warning(widget, tr("LemonLime"),
394 tr("Cannot open file %1").arg(QFileInfo(file).fileName()), QMessageBox::Ok);
395 return;
396 }
397
398 QApplication::setOverrideCursor(Qt::WaitCursor);
399 QTextStream out(&file);
400 out << nowBrowserText;
401 QApplication::restoreOverrideCursor();
402 QMessageBox::information(widget, tr("LemonLime"), tr("Export is done"), QMessageBox::Ok);
403}
404
405void StatisticsBrowser::exportStatistics(QWidget *widget, Contest *curContest) {
406 if (! curContest) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected