Skip to content

Commit

Permalink
Setting stretch behavior of the config panel in zcm dataloader ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jbendes committed Nov 15, 2024
1 parent 238b203 commit fd09061
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 4 additions & 7 deletions plotjuggler_plugins/PluginsZcm/config_zcm.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>553</width>
<height>264</height>
<height>200</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -78,6 +78,9 @@
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QListWidget" name="listWidgetLibs">
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
Expand Down Expand Up @@ -137,12 +140,6 @@
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
Expand Down
2 changes: 2 additions & 0 deletions plotjuggler_plugins/PluginsZcm/dataload_zcm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fd09061

Please sign in to comment.