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

Method removeBuildDir

plugins/meson/settings/mesonconfigpage.cpp:288–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void MesonConfigPage::removeBuildDir()
289{
290 qCDebug(KDEV_Meson) << "Removing current build directory";
291 m_ui->i_buildDirs->blockSignals(true);
292 m_ui->i_buildDirs->removeItem(m_config.currentIndex);
293 m_config.removeBuildDir(m_config.currentIndex);
294 if (m_config.buildDirs.isEmpty()) {
295 m_config.currentIndex = -1;
296 } else if (m_config.currentIndex < 0 || m_config.currentIndex >= m_config.buildDirs.size()) {
297 m_config.currentIndex = 0;
298 }
299 m_ui->i_buildDirs->setCurrentIndex(m_config.currentIndex);
300 m_ui->i_buildDirs->blockSignals(false);
301 reset();
302 writeConfig();
303}
304
305void MesonConfigPage::changeBuildDirIndex(int index)
306{

Callers

nothing calls this directly

Calls 5

resetFunction · 0.85
removeItemMethod · 0.80
setCurrentIndexMethod · 0.80
isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected