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

Method addPath

plugins/custom-definesandincludes/kcm_widget/projectpathsmodel.cpp:166–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void ProjectPathsModel::addPath( const QUrl &url )
167{
168 if( !project->path().isParentOf(KDevelop::Path(url)) ) {
169 return;
170 }
171
172 beginInsertRows( QModelIndex(), rowCount(), rowCount() );
173 addPathInternal( ConfigEntry(sanitizeUrl(url)), false );
174 endInsertRows();
175}
176
177void ProjectPathsModel::addPathInternal( const ConfigEntry& config, bool prepend )
178{

Callers 6

buildDirectoryMethod · 0.45
includeItemsForUrlFunction · 0.45
CraftRuntimeMethod · 0.45
findConfigForItemFunction · 0.45
addProjectPathMethod · 0.45
configForItemFunction · 0.45

Calls 5

ConfigEntryClass · 0.85
isParentOfMethod · 0.80
PathClass · 0.50
QModelIndexClass · 0.50
pathMethod · 0.45

Tested by

no test coverage detected