MCPcopy Create free account
hub / github.com/Kitware/CMake / saveBuildPaths

Method saveBuildPaths

Source/QtDialog/CMakeSetupDialog.cxx:1147–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1145}
1146
1147void CMakeSetupDialog::saveBuildPaths(QStringList const& paths)
1148{
1149 QSettings settings;
1150 settings.beginGroup("Settings/StartPath");
1151
1152 cm_qsizetype num = paths.count();
1153 if (num > 10) {
1154 num = 10;
1155 }
1156
1157 for (cm_qsizetype i = 0; i < num; i++) {
1158 settings.setValue(QString("WhereBuild%1").arg(i), paths[i]);
1159 }
1160}
1161
1162void CMakeSetupDialog::setCacheModified()
1163{

Callers 1

addBinaryPathMethod · 0.95

Calls 3

QStringClass · 0.85
setValueMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected