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

Method setColumnStretchHints

qrenderdoc/Widgets/Extended/RDHeaderView.cpp:496–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496void RDHeaderView::setColumnStretchHints(const QList<int> &hints)
497{
498 if(hints.count() != count())
499 qCritical() << "Got" << hints.count() << "hints, but have" << count() << "columns";
500 m_sectionStretchHints = hints;
501
502 // we take control of the sizing, we don't currently support custom resizing AND stretchy size
503 // hints.
504 QHeaderView::setSectionResizeMode(QHeaderView::Fixed);
505
506 cacheSectionMinSizes();
507 resizeSectionsWithHints();
508}
509
510void RDHeaderView::setPinnedColumns(int numColumns, QAbstractScrollArea *scroll)
511{

Callers 9

ResourceInspectorMethod · 0.80
TextureViewerMethod · 0.80
GLPipelineStateViewerMethod · 0.80
ConfigEditorMethod · 0.80
VirtualFileDialogMethod · 0.80
ExtensionManagerMethod · 0.80

Calls 2

countFunction · 0.50
countMethod · 0.45

Tested by 1

ResourceInspectorMethod · 0.64