| 55 | } |
| 56 | |
| 57 | QString readBuildDirParameter(KDevelop::IProject* project, const char* key, const QString& aDefault, int buildDirectory) |
| 58 | { |
| 59 | const int buildDirIndex = buildDirectory<0 ? CMake::currentBuildDirIndex(project) : buildDirectory; |
| 60 | if (buildDirIndex >= 0) // NOTE: we return trimmed since we may have written bogus trailing newlines in the past... |
| 61 | return buildDirGroup( project, buildDirIndex ).readEntry( key, aDefault ).trimmed(); |
| 62 | else |
| 63 | return aDefault; |
| 64 | } |
| 65 | |
| 66 | void writeBuildDirParameter(KDevelop::IProject* project, const char* key, const QString& value) |
| 67 | { |
no test coverage detected