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

Method checkProjectsOpened

plugins/grepview/grepdialog.cpp:529–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529bool GrepDialog::checkProjectsOpened()
530{
531 // only proceed if all projects have been opened
532 if (KDevelop::ICore::self()->activeSession()->config()->group(QStringLiteral("General Options")).readEntry("Open Projects", QList<QUrl>()).count() !=
533 KDevelop::ICore::self()->projectController()->projects().count())
534 return false;
535
536 const auto projects = KDevelop::ICore::self()->projectController()->projects();
537 for (IProject* p : projects) {
538 if (!p->isReady())
539 return false;
540 }
541
542 // do the grep jobs one by one
543 connect(m_plugin, &GrepViewPlugin::grepJobFinished, this, &GrepDialog::nextHistory);
544 QTimer::singleShot(0, this, [=]() {nextHistory(true);});
545
546 return true;
547}
548
549void GrepDialog::nextHistory(bool next)
550{

Callers

nothing calls this directly

Calls 7

readEntryMethod · 0.80
projectsMethod · 0.80
projectControllerMethod · 0.80
countMethod · 0.45
configMethod · 0.45
activeSessionMethod · 0.45
isReadyMethod · 0.45

Tested by

no test coverage detected