| 190 | } |
| 191 | |
| 192 | void DetectedProblem::addDiagnostic(const Ptr &diagnostic) |
| 193 | { |
| 194 | Q_D(DetectedProblem); |
| 195 | |
| 196 | auto *dp = dynamic_cast<DetectedProblem*>(diagnostic.data()); |
| 197 | |
| 198 | Q_ASSERT(dp); |
| 199 | |
| 200 | d->m_diagnostics.push_back(diagnostic); |
| 201 | } |
| 202 | |
| 203 | void DetectedProblem::clearDiagnostics() |
| 204 | { |