| 1446 | } |
| 1447 | |
| 1448 | void MainWindow::clearResults() |
| 1449 | { |
| 1450 | if (mProjectFile && !mProjectFile->getBuildDir().isEmpty()) { |
| 1451 | QDir dir(QFileInfo(mProjectFile->getFilename()).absolutePath() + '/' + mProjectFile->getBuildDir()); |
| 1452 | for (const QString& f: dir.entryList(QDir::Files)) { |
| 1453 | if (!f.endsWith("files.txt")) { |
| 1454 | static const QRegularExpression rx("^.*.s[0-9]+$"); |
| 1455 | if (!rx.match(f).hasMatch()) |
| 1456 | dir.remove(f); |
| 1457 | } |
| 1458 | } |
| 1459 | } |
| 1460 | mUI->mResults->clear(true); |
| 1461 | Q_ASSERT(false == mUI->mResults->hasResults()); |
| 1462 | enableResultsButtons(); |
| 1463 | } |
| 1464 | |
| 1465 | void MainWindow::openResults() |
| 1466 | { |
nothing calls this directly
no test coverage detected