| 676 | } |
| 677 | |
| 678 | void BreakpointModel::reportChange(Breakpoint* breakpoint, Breakpoint::Column column) |
| 679 | { |
| 680 | Q_D(BreakpointModel); |
| 681 | |
| 682 | // note: just a portion of Breakpoint::Column is displayed in this model! |
| 683 | if (column >= 0 && column < columnCount()) { |
| 684 | QModelIndex idx = breakpointIndex(breakpoint, column); |
| 685 | Q_ASSERT(idx.isValid()); // make sure we don't pass invalid indices to dataChanged() |
| 686 | emit dataChanged(idx, idx); |
| 687 | } |
| 688 | |
| 689 | if (IBreakpointController* controller = breakpointController()) { |
| 690 | int row = d->breakpoints.indexOf(breakpoint); |
| 691 | Q_ASSERT(row != -1); |
| 692 | controller->breakpointModelChanged(row, ColumnFlags(1 << column)); |
| 693 | } |
| 694 | |
| 695 | scheduleSave(); |
| 696 | } |
| 697 | |
| 698 | ScopedIncrementor<> BreakpointModel::markChangeGuard() |
| 699 | { |
nothing calls this directly
no test coverage detected