MCPcopy Create free account
hub / github.com/KDE/kdevelop / jobStateChanged

Method jobStateChanged

plugins/testview/testviewplugin.cpp:123–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void 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"

Callers

nothing calls this directly

Calls 7

currentJobsMethod · 0.80
runControllerMethod · 0.80
propertyMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
setEnabledMethod · 0.45
actionMethod · 0.45

Tested by

no test coverage detected