| 15 | BreakpointModel::~BreakpointModel() = default; |
| 16 | |
| 17 | void BreakpointModel::setBreakpoints(const Internal::Breakpoints &breakpoints, bool canExpand) |
| 18 | { |
| 19 | beginResetModel(); |
| 20 | contentsValid = true; |
| 21 | this->canExpand = canExpand; |
| 22 | bps.clear(); |
| 23 | for (auto it : breakpoints) { |
| 24 | bps.push_back(BreakpointItem(it)); |
| 25 | } |
| 26 | if (bps.size() >= 0) |
| 27 | setCurrentIndex(0); |
| 28 | else |
| 29 | currentIndex = -1; |
| 30 | endResetModel(); |
| 31 | emit breakpointChanged(); |
| 32 | } |
| 33 | |
| 34 | void BreakpointModel::insertBreakpoint(const Internal::Breakpoint &breakpoint) |
| 35 | { |
nothing calls this directly
no test coverage detected