| 367 | } |
| 368 | |
| 369 | void 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 | |
| 384 | void ProjectBuildSetModel::moveRowsDown(int row, int count) |
| 385 | { |
nothing calls this directly
no test coverage detected