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

Method fileLineForIndex

src/models/sourcecodemodel.cpp:241–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241Data::FileLine SourceCodeModel::fileLineForIndex(const QModelIndex& index) const
242{
243 if (!index.isValid())
244 return {};
245 return {m_mainSourceFileName, index.row() + m_startLine};
246}
247
248QModelIndex SourceCodeModel::indexForFileLine(const Data::FileLine& fileLine) const
249{

Callers 1

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected