| 253 | } |
| 254 | |
| 255 | void CompileAnalyzer::result(KJob* job) |
| 256 | { |
| 257 | Q_UNUSED(job); |
| 258 | |
| 259 | if (!core()->projectController()->projects().contains(m_model->project())) { |
| 260 | m_model->reset(); |
| 261 | } else { |
| 262 | const auto status = m_job->status(); |
| 263 | m_model->finishAddProblems(status == OutputExecuteJob::JobStatus::JobSucceeded); |
| 264 | |
| 265 | if (status == OutputExecuteJob::JobStatus::JobSucceeded || status == OutputExecuteJob::JobStatus::JobCanceled) { |
| 266 | raiseProblemsToolView(); |
| 267 | } else { |
| 268 | raiseOutputToolView(); |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | m_job = nullptr; // job automatically deletes itself later |
| 273 | |
| 274 | updateActions(); |
| 275 | } |
| 276 | |
| 277 | void CompileAnalyzer::fillContextMenuExtension(ContextMenuExtension &extension, |
| 278 | Context* context, QWidget* parent) |
nothing calls this directly
no test coverage detected