| 353 | } |
| 354 | |
| 355 | void ProjectBuildSetModel::saveToProject( KDevelop::IProject* project ) const |
| 356 | { |
| 357 | Q_D(const ProjectBuildSetModel); |
| 358 | |
| 359 | QVariantList paths; |
| 360 | for (const BuildItem& item : std::as_const(d->items)) { |
| 361 | if( item.itemProject() == project->name() ) |
| 362 | paths.append(item.itemPath()); |
| 363 | } |
| 364 | KConfigGroup base = project->projectConfiguration()->group(QStringLiteral("Buildset")); |
| 365 | base.writeEntry("BuildItems", KDevelop::qvariantToString( QVariant( paths ) )); |
| 366 | base.sync(); |
| 367 | } |
| 368 | |
| 369 | void ProjectBuildSetModel::loadFromProject( KDevelop::IProject* project ) |
| 370 | { |
nothing calls this directly
no test coverage detected