From fd09061433c550d6a28e7e7ad026021d2091792d Mon Sep 17 00:00:00 2001 From: Jonathan Bendes Date: Fri, 15 Nov 2024 16:57:41 -0500 Subject: [PATCH] Setting stretch behavior of the config panel in zcm dataloader ui --- plotjuggler_plugins/PluginsZcm/config_zcm.ui | 11 ++++------- plotjuggler_plugins/PluginsZcm/dataload_zcm.cpp | 2 ++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/plotjuggler_plugins/PluginsZcm/config_zcm.ui b/plotjuggler_plugins/PluginsZcm/config_zcm.ui index 2aefbd8d2..ec0bda40e 100644 --- a/plotjuggler_plugins/PluginsZcm/config_zcm.ui +++ b/plotjuggler_plugins/PluginsZcm/config_zcm.ui @@ -7,7 +7,7 @@ 0 0 553 - 264 + 200 @@ -78,6 +78,9 @@ + + QAbstractScrollArea::AdjustToContents + QAbstractItemView::NoEditTriggers @@ -137,12 +140,6 @@ Qt::Vertical - - - 20 - 40 - - diff --git a/plotjuggler_plugins/PluginsZcm/dataload_zcm.cpp b/plotjuggler_plugins/PluginsZcm/dataload_zcm.cpp index 9cfd44342..6c9731f1f 100644 --- a/plotjuggler_plugins/PluginsZcm/dataload_zcm.cpp +++ b/plotjuggler_plugins/PluginsZcm/dataload_zcm.cpp @@ -28,7 +28,9 @@ DataLoadZcm::DataLoadZcm() _ui->setupUi(_dialog); _config_widget = new ConfigZCM("DataLoadZcm", _dialog); + _config_widget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); _ui->mainLayout->insertWidget(0, _config_widget, 1); + _ui->mainLayout->setStretchFactor(_config_widget, 0); _ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);