Set mesh viewer tables to always have a scrollbars

* This can prevent a very rare resize loop
This commit is contained in:
baldurk
2025-02-07 11:28:25 +00:00
parent b691f2421e
commit 2c5fee7c07
+10
View File
@@ -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