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

Method sectionViewportPosition

qrenderdoc/Widgets/Extended/RDHeaderView.cpp:206–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206int RDHeaderView::sectionViewportPosition(int logicalIndex) const
207{
208 if(m_customSizing)
209 {
210 if(logicalIndex < 0 || logicalIndex >= m_sections.count())
211 return -1;
212
213 int offs = m_sections[logicalIndex].offset;
214
215 if(logicalIndex >= m_pinnedColumns)
216 offs -= offset();
217
218 return offs;
219 }
220
221 return QHeaderView::sectionViewportPosition(logicalIndex);
222}
223
224int RDHeaderView::visualIndexAt(int position) const
225{

Callers 3

scrollToMethod · 0.80
updateGeometriesMethod · 0.80

Calls 2

offsetFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected