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

Method load

kdevplatform/debugger/breakpoint/breakpointmodel.cpp:737–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735}
736
737void BreakpointModel::load()
738{
739 KConfigGroup breakpoints = ICore::self()->activeSession()->config()->group(QStringLiteral("Breakpoints"));
740 int count = breakpoints.readEntry("number", 0);
741 if (count == 0)
742 return;
743
744 beginInsertRows(QModelIndex(), 0, count - 1);
745 for (int i = 0; i < count; ++i) {
746 if (!breakpoints.group(QString::number(i)).readEntry("kind", "").isEmpty()) {
747 new Breakpoint(this, breakpoints.group(QString::number(i)));
748 }
749 }
750 endInsertRows();
751}
752
753void BreakpointModel::save()
754{

Callers 1

Calls 5

readEntryMethod · 0.80
QModelIndexClass · 0.70
configMethod · 0.45
activeSessionMethod · 0.45
isEmptyMethod · 0.45

Tested by 1