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

Method ScrollToRow

qrenderdoc/Windows/BufferViewer.cpp:5082–5091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5080}
5081
5082void BufferViewer::ScrollToRow(RDTableView *view, int row)
5083{
5084 int hs = view->horizontalScrollBar()->value();
5085
5086 view->scrollTo(view->model()->index(row, 0), QAbstractItemView::PositionAtTop);
5087 view->clearSelection();
5088 view->selectRow(row);
5089
5090 view->horizontalScrollBar()->setValue(hs);
5091}
5092
5093void BufferViewer::ScrollToColumn(RDTableView *view, int column)
5094{

Callers 3

jumpToPrimitiveMethod · 0.80
ShaderMessageViewerMethod · 0.80

Calls 10

horizontalScrollBarMethod · 0.80
scrollToMethod · 0.80
scrollToItemMethod · 0.80
topLevelItemMethod · 0.80
setSelectedItemMethod · 0.80
valueMethod · 0.45
indexMethod · 0.45
modelMethod · 0.45
setValueMethod · 0.45
setYMethod · 0.45

Tested by

no test coverage detected