From 2c5fee7c076c1a10514f9e3ec0a0e67ff38c413a Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 7 Feb 2025 11:27:15 +0000 Subject: [PATCH] Set mesh viewer tables to always have a scrollbars * This can prevent a very rare resize loop --- qrenderdoc/Windows/BufferViewer.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qrenderdoc/Windows/BufferViewer.cpp b/qrenderdoc/Windows/BufferViewer.cpp index 2cd48071c..6ccc0d3f6 100644 --- a/qrenderdoc/Windows/BufferViewer.cpp +++ b/qrenderdoc/Windows/BufferViewer.cpp @@ -2362,6 +2362,16 @@ BufferViewer::BufferViewer(ICaptureContext &ctx, bool meshview, QWidget *parent) m_ModelOut1 = new BufferItemModel(ui->out1Table, false, meshview, this); m_ModelOut2 = new BufferItemModel(ui->out2Table, false, meshview, this); + if(meshview) + { + ui->inTable->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); + ui->inTable->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn); + ui->out1Table->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); + ui->out1Table->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn); + ui->out2Table->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); + ui->out2Table->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn); + } + m_MeshDebugSelector = new ComputeDebugSelector(this); // we keep the old UI names for serialised layouts compatibility