| 389 | } |
| 390 | |
| 391 | int currentBuildDirIndex( KDevelop::IProject* project ) |
| 392 | { |
| 393 | KConfigGroup baseGrp = baseGroup(project); |
| 394 | |
| 395 | if ( baseGrp.hasKey( Config::buildDirOverrideIndexKey ) ) |
| 396 | return baseGrp.readEntry<int>( Config::buildDirOverrideIndexKey, -1 ); |
| 397 | |
| 398 | else if (baseGrp.hasKey(Config::buildDirIndexKey())) |
| 399 | return baseGrp.readEntry<int>( Config::buildDirIndexKey(), -1 ); |
| 400 | else |
| 401 | return baseGrp.readEntry<int>(Config::globalBuildDirIndexKey(), -1); // backwards compatibility |
| 402 | } |
| 403 | |
| 404 | void setCurrentBuildDirIndex( KDevelop::IProject* project, int buildDirIndex ) |
| 405 | { |
no test coverage detected