From 0f3a5fe4c5ec08db9ed4e2eba81ab64f20005da1 Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 10 Oct 2025 23:31:41 +0500 Subject: [PATCH] tweak build.customize.variables gui --- radiant/build.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radiant/build.cpp b/radiant/build.cpp index 975ecee7..cf7fae67 100644 --- a/radiant/build.cpp +++ b/radiant/build.cpp @@ -1092,9 +1092,11 @@ EMessageBoxReturn BuildMenuDialog_construct( ProjectList& projectList ){ containerWidget->hide(); QObject::connect( expander, &QGroupBox::clicked, containerWidget, &QWidget::setVisible ); auto *vbox = new QVBoxLayout( containerWidget ); + vbox->setContentsMargins( 0, 0, 0, 0 ); build_init_variables(); { // immutable variables + vbox->addWidget( new QLabel( "Constants:" ) ); QIcon icon = new_local_icon( "copy.png" ); auto *table = new QTableWidget( 0, 2 ); vbox->addWidget( table ); @@ -1124,9 +1126,11 @@ EMessageBoxReturn BuildMenuDialog_construct( ProjectList& projectList ){ } build_init_tools(); { // mutable 'Tool' variables + vbox->addWidget( new QLabel( "Editables:" ) ); auto *table = new QTableWidget( 0, 2 ); vbox->addWidget( table ); - table->setHorizontalHeaderLabels( { "Name", "Variable" } ); + table->horizontalHeader()->hide(); + // table->setHorizontalHeaderLabels( { "Name", "Variable" } ); table->setSelectionMode( QAbstractItemView::SelectionMode::SingleSelection ); table->horizontalHeader()->setStretchLastSection( true ); table->setWordWrap( true );