MCPcopy Create free account
hub / github.com/KDE/kdevelop / adoptPreviousBuildDirectory

Method adoptPreviousBuildDirectory

plugins/cmake/cmakebuilddirchooser.cpp:286–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void CMakeBuildDirChooser::adoptPreviousBuildDirectory(int index)
287{
288 if (index > 0) {
289 Q_ASSERT(m_project);
290 m_chooserUi->cmakeExecutable->setUrl(CMake::currentCMakeExecutable(m_project, index -1).toUrl());
291 m_chooserUi->buildFolder->setUrl(CMake::currentBuildDir(m_project, index -1).toUrl());
292 m_chooserUi->installPrefix->setUrl(CMake::currentInstallDir(m_project, index -1).toUrl());
293 m_chooserUi->buildType->setCurrentText(CMake::currentBuildType(m_project, index -1));
294 m_chooserUi->extraArguments->setCurrentText(CMake::currentExtraArguments(m_project, index -1));
295 }
296
297 m_chooserUi->label_5->setEnabled(index == 0);
298 m_chooserUi->cmakeExecutable->setEnabled(index == 0);
299 m_chooserUi->label_3->setEnabled(index == 0);
300 m_chooserUi->buildFolder->setEnabled(index == 0);
301 m_chooserUi->label->setEnabled(index == 0);
302 m_chooserUi->installPrefix->setEnabled(index == 0);
303 m_chooserUi->label_2->setEnabled(index == 0);
304 m_chooserUi->buildType->setEnabled(index == 0);
305 m_chooserUi->status->setEnabled(index == 0);
306 m_chooserUi->extraArguments->setEnabled(index == 0);
307 m_chooserUi->label_4->setEnabled(index == 0);
308}
309
310bool CMakeBuildDirChooser::reuseBuilddir()
311{

Callers

nothing calls this directly

Calls 8

currentCMakeExecutableFunction · 0.85
currentBuildDirFunction · 0.85
currentInstallDirFunction · 0.85
currentBuildTypeFunction · 0.85
currentExtraArgumentsFunction · 0.85
setUrlMethod · 0.45
toUrlMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected