| 368 | } |
| 369 | |
| 370 | void ResultViewer::clearPath(const QString &curDir) { |
| 371 | QDir dir(curDir); |
| 372 | QStringList fileList = dir.entryList(QDir::Files); |
| 373 | |
| 374 | for (int i = 0; i < fileList.size(); i++) { |
| 375 | dir.remove(fileList[i]); |
| 376 | } |
| 377 | |
| 378 | QStringList dirList = dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot); |
| 379 | |
| 380 | for (int i = 0; i < dirList.size(); i++) { |
| 381 | clearPath(curDir + dirList[i] + QDir::separator()); |
| 382 | dir.rmdir(dirList[i]); |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | void ResultViewer::deleteContestant() { |
| 387 | auto *messageBox = new QMessageBox(QMessageBox::Warning, tr("LemonLime"), |
nothing calls this directly
no outgoing calls
no test coverage detected