| 735 | } |
| 736 | |
| 737 | void 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 | |
| 753 | void BreakpointModel::save() |
| 754 | { |