MCPcopy Create free account
hub / github.com/baldurk/renderdoc / mapFromSource

Method mapFromSource

qrenderdoc/Windows/LogView.cpp:182–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 }
181
182 virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override
183 {
184 auto it = std::lower_bound(m_VisibleRows.begin(), m_VisibleRows.end(), sourceIndex.row());
185
186 int row = -1;
187
188 if(it != m_VisibleRows.end() && *it == sourceIndex.row())
189 row = it - m_VisibleRows.begin();
190
191 return createIndex(row, sourceIndex.column(), sourceIndex.internalId());
192 }
193
194 virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const override
195 {

Callers 6

FindNextMethod · 0.45
filter_applyMethod · 0.45
SelectEventMethod · 0.45
IsAPIEventVisibleMethod · 0.45
VirtualFileDialogMethod · 0.45
changeCurrentDirMethod · 0.45

Calls 5

createIndexFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
rowMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected