| 435 | } |
| 436 | |
| 437 | void ResultsTree::clearRecheckFile(const QString &filename) |
| 438 | { |
| 439 | for (int i = 0; i < mModel->rowCount(); ++i) { |
| 440 | const auto *fileItem = dynamic_cast<ResultItem*>(mModel->item(i, COLUMN_FILE)); |
| 441 | if (!fileItem) |
| 442 | continue; |
| 443 | |
| 444 | QString actualfile((!mCheckPath.isEmpty() && filename.startsWith(mCheckPath)) ? filename.mid(mCheckPath.length() + 1) : filename); |
| 445 | QString storedfile = fileItem->getErrorPathItem().file; |
| 446 | storedfile = ((!mCheckPath.isEmpty() && storedfile.startsWith(mCheckPath)) ? storedfile.mid(mCheckPath.length() + 1) : storedfile); |
| 447 | if (actualfile == storedfile) { |
| 448 | mErrorList.removeAll(fileItem->errorItem->toString()); |
| 449 | mModel->removeRow(i); |
| 450 | break; |
| 451 | } |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | |
| 456 | void ResultsTree::loadSettings() |
no test coverage detected