MCPcopy Create free account
hub / github.com/KDAB/hotspot / indexForFileLine

Method indexForFileLine

src/models/sourcecodemodel.cpp:248–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248QModelIndex SourceCodeModel::indexForFileLine(const Data::FileLine& fileLine) const
249{
250 if (fileLine.file != m_mainSourceFileName || fileLine.line < m_startLine
251 || fileLine.line > m_startLine + m_numLines)
252 return {};
253 return index(fileLine.line - m_startLine, 0);
254}
255
256void SourceCodeModel::setSysroot(const QString& sysroot)
257{

Callers 2

jumpToSourceLineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected