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

Function projectFileExists

kdevplatform/shell/projectcontroller.cpp:402–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400
401
402bool projectFileExists( const QUrl& u )
403{
404 if( u.isLocalFile() )
405 {
406 return QFileInfo::exists( u.toLocalFile() );
407 } else
408 {
409 auto statJob = KIO::stat(u, KIO::StatJob::DestinationSide, KIO::StatNoDetails, KIO::HideProgressInfo);
410 KJobWidgets::setWindow(statJob, Core::self()->uiControllerInternal()->activeMainWindow());
411 return statJob->exec();
412 }
413}
414
415bool equalProjectFile( const QString& configPath, OpenProjectDialog* dlg )
416{

Callers 1

Calls 6

statClass · 0.85
isLocalFileMethod · 0.80
toLocalFileMethod · 0.80
uiControllerInternalMethod · 0.80
execMethod · 0.80
activeMainWindowMethod · 0.45

Tested by

no test coverage detected