| 121 | } |
| 122 | |
| 123 | void TestViewPlugin::jobStateChanged() |
| 124 | { |
| 125 | const auto jobs = core()->runController()->currentJobs(); |
| 126 | const bool found = std::any_of(jobs.begin(), jobs.end(), [](KJob* job) { |
| 127 | return (job->property("test_job").toBool()); |
| 128 | }); |
| 129 | |
| 130 | actionCollection()->action(QStringLiteral("run_all_tests"))->setEnabled(!found); |
| 131 | actionCollection()->action(QStringLiteral("stop_running_tests"))->setEnabled(found); |
| 132 | } |
| 133 | |
| 134 | #include "testviewplugin.moc" |
| 135 | #include "moc_testviewplugin.cpp" |
nothing calls this directly
no test coverage detected