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

Method reset

plugins/cmake/settings/cmakepreferences.cpp:118–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void CMakePreferences::reset()
119{
120 qCDebug(CMAKE) << "********loading";
121 m_prefsUi->buildDirs->clear();
122 m_prefsUi->buildDirs->addItems( CMake::allBuildDirs(m_project) );
123 CMake::removeOverrideBuildDirIndex(m_project); // addItems() triggers buildDirChanged(), compensate for it
124 m_prefsUi->buildDirs->setCurrentIndex( CMake::currentBuildDirIndex(m_project) );
125
126 initAdvanced();
127
128 m_srcFolder = m_project->path();
129
130 m_prefsUi->removeBuildDir->setEnabled(m_prefsUi->buildDirs->count()!=0);
131// QString cmDir=group.readEntry("CMakeDirectory");
132// m_prefsUi->kcfg_cmakeDir->setUrl(QUrl(cmDir));
133// qCDebug(CMAKE) << "cmakedir" << cmDir;
134}
135
136void CMakePreferences::apply()
137{

Callers

nothing calls this directly

Calls 9

allBuildDirsFunction · 0.85
currentBuildDirIndexFunction · 0.85
setCurrentIndexMethod · 0.80
clearMethod · 0.45
addItemsMethod · 0.45
pathMethod · 0.45
setEnabledMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected