MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / closeProject

Method closeProject

libs/librepcb/editor/guiapplication.cpp:637–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637void GuiApplication::closeProject(int index) noexcept {
638 mProjects->remove(index);
639 for (int i = index; i < mProjects->count(); ++i) {
640 mProjects->at(i)->setUiIndex(i);
641 }
642}
643
644bool GuiApplication::requestClosingAllProjects() noexcept {
645 for (std::size_t i = 0; i < mProjects->row_count(); ++i) {

Callers 1

triggerProjectMethod · 0.80

Calls 4

atMethod · 0.80
removeMethod · 0.45
countMethod · 0.45
setUiIndexMethod · 0.45

Tested by

no test coverage detected