| 127 | } |
| 128 | |
| 129 | void Problem::addDiagnostic(const IProblem::Ptr& diagnostic) |
| 130 | { |
| 131 | auto* problem = dynamic_cast<Problem*>(diagnostic.data()); |
| 132 | Q_ASSERT(problem != nullptr); |
| 133 | |
| 134 | ProblemPointer ptr(problem); |
| 135 | |
| 136 | m_diagnostics << ptr; |
| 137 | } |
| 138 | |
| 139 | QString Problem::description() const |
| 140 | { |