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

Method projectManagerForFile

kdevplatform/shell/openprojectdialog.cpp:304–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304QStringList OpenProjectDialog::projectManagerForFile(const QString& file) const
305{
306 QStringList ret;
307 for (auto it = m_projectFilters.begin(), end = m_projectFilters.end(); it != end; ++it) {
308 const QString& manager = it.key();
309 for (const QString& filterexp : it.value()) {
310 QRegExp exp( filterexp, Qt::CaseSensitive, QRegExp::Wildcard );
311 if ( exp.exactMatch(file) ) {
312 ret.append(manager);
313 }
314 }
315 }
316 if ( file.endsWith(ShellExtension::getInstance()->projectFileExtension()) ) {
317 ret.append(QStringLiteral("<built-in>"));
318 }
319 return ret;
320}
321
322void OpenProjectDialog::openPageAccepted()
323{

Callers

nothing calls this directly

Calls 7

endsWithMethod · 0.80
projectFileExtensionMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected