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

Method reportChange

kdevplatform/debugger/breakpoint/breakpointmodel.cpp:678–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678void 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
698ScopedIncrementor<> BreakpointModel::markChangeGuard()
699{

Callers

nothing calls this directly

Calls 4

breakpointControllerFunction · 0.85
isValidMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected