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

Method setLocation

kdevplatform/debugger/breakpoint/breakpoint.cpp:265–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 return m_url;
264}
265void Breakpoint::setLocation(const QUrl& url, int line)
266{
267 Q_ASSERT(m_kind == CodeBreakpoint);
268 Q_ASSERT(isSupportedBreakpointUrl(url));
269
270 updateMovingCursor(url, line);
271
272 m_url = url;
273 m_line = line;
274 reportChange(LocationColumn);
275}
276
277QString KDevelop::Breakpoint::location() {
278 return data(LocationColumn, LocationRole).toString();

Callers 4

addCodeBreakpointMethod · 0.45
initMethod · 0.45
testDocumentSaveMethod · 0.45
testSetLocationMethod · 0.45

Calls 1

isSupportedBreakpointUrlFunction · 0.85

Tested by 3

initMethod · 0.36
testDocumentSaveMethod · 0.36
testSetLocationMethod · 0.36