@@ -656,6 +656,11 @@ void ShaderViewer::debugShader(const ShaderReflection *shader, ResourceId pipeli
656
656
ui->watch ->header ()->setSectionResizeMode (2 , QHeaderView::ResizeToContents);
657
657
ui->watch ->header ()->setSectionResizeMode (3 , QHeaderView::Interactive);
658
658
659
+ // registers last as it can be quite long (easier to do here than modify all the node creation)
660
+ ui->sourceVars ->header ()->moveSection (1 , 3 );
661
+ ui->constants ->header ()->moveSection (1 , 3 );
662
+ ui->watch ->header ()->moveSection (1 , 3 );
663
+
659
664
ui->watch ->header ()->resizeSection (0 , 80 );
660
665
661
666
ui->watch ->setItemDelegate (new FullEditorDelegate (ui->watch ));
@@ -4204,6 +4209,9 @@ void ShaderViewer::updateDebugState()
4204
4209
ui->constants ->addTopLevelItem (node);
4205
4210
}
4206
4211
}
4212
+
4213
+ ui->constants ->header ()->resizeSection (
4214
+ 3 , qMax (ui->constants ->header ()->sectionSize (3 ), ui->constants ->sizeHintForColumn (3 )));
4207
4215
}
4208
4216
4209
4217
{
@@ -4271,6 +4279,9 @@ void ShaderViewer::updateDebugState()
4271
4279
for (RDTreeWidgetItem *n : nodes)
4272
4280
ui->sourceVars ->addTopLevelItem (n);
4273
4281
4282
+ ui->sourceVars ->header ()->resizeSection (
4283
+ 3 , qMax (ui->sourceVars ->header ()->sectionSize (3 ), ui->sourceVars ->sizeHintForColumn (3 )));
4284
+
4274
4285
ui->sourceVars ->endUpdate ();
4275
4286
4276
4287
ui->sourceVars ->applyExpansion (expansion, 0 );
@@ -4698,6 +4709,9 @@ void ShaderViewer::updateWatchVariables()
4698
4709
item->setTag (QVariant::fromValue (tag));
4699
4710
}
4700
4711
4712
+ ui->watch ->header ()->resizeSection (
4713
+ 3 , qMax (ui->watch ->header ()->sectionSize (3 ), ui->watch ->sizeHintForColumn (3 )));
4714
+
4701
4715
ui->watch ->endUpdate ();
4702
4716
4703
4717
ui->watch ->applyExpansion (expansion, 0 );
0 commit comments