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

Method loadFromProject

kdevplatform/project/projectbuildsetmodel.cpp:369–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void ProjectBuildSetModel::loadFromProject( KDevelop::IProject* project )
370{
371 KConfigGroup base = project->projectConfiguration()->group(QStringLiteral("Buildset"));
372 if (base.hasKey("BuildItems")) {
373 const QVariantList items = KDevelop::stringToQVariant(base.readEntry("BuildItems", QString())).toList();
374
375 for (const QVariant& path : items) {
376 insertItemWithCache( BuildItem( path.toStringList() ) );
377 }
378 } else {
379 // Add project to buildset, but only if there is no configuration for this project yet.
380 addProjectItem( project->projectItem() );
381 }
382}
383
384void ProjectBuildSetModel::moveRowsDown(int row, int count)
385{

Callers

nothing calls this directly

Calls 8

stringToQVariantFunction · 0.85
readEntryMethod · 0.80
QStringClass · 0.50
projectConfigurationMethod · 0.45
hasKeyMethod · 0.45
toListMethod · 0.45
toStringListMethod · 0.45
projectItemMethod · 0.45

Tested by

no test coverage detected