Skip to content

Commit

Permalink
Merge pull request #135 from astrofrog/no-expand-combo-boxes
Browse files Browse the repository at this point in the history
Make sure the combo boxes don’t expand if component names are long
  • Loading branch information
astrofrog committed May 3, 2016
2 parents 69bc973 + b1e86ce commit db1b7d2
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
0.3 (unreleased)
----------------

- Make sure combo boxes don't expand if component names are long. [#135]

- Add icon for rotate view. [#128]

- Add back the fov=60. [#124]
Expand Down
18 changes: 15 additions & 3 deletions glue_vispy_viewers/common/viewer_options.ui
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@
</widget>
</item>
<item row="7" column="3" colspan="3">
<widget class="QComboBox" name="combo_z_attribute"/>
<widget class="QComboBox" name="combo_z_attribute">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
<item row="6" column="2">
<widget class="QLabel" name="label">
Expand Down Expand Up @@ -124,7 +128,11 @@
</widget>
</item>
<item row="0" column="3" colspan="3">
<widget class="QComboBox" name="combo_x_attribute"/>
<widget class="QComboBox" name="combo_x_attribute">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
<item row="7" column="2">
<widget class="QLabel" name="x_lab">
Expand Down Expand Up @@ -188,7 +196,11 @@
<widget class="QLineEdit" name="value_x_max"/>
</item>
<item row="4" column="3" colspan="3">
<widget class="QComboBox" name="combo_y_attribute"/>
<widget class="QComboBox" name="combo_y_attribute">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="x_lab">
Expand Down
6 changes: 5 additions & 1 deletion glue_vispy_viewers/isosurface/layer_style_widget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@
<widget class="QLineEdit" name="value_max"/>
</item>
<item row="0" column="1" colspan="2">
<widget class="QComboBox" name="combo_attribute"/>
<widget class="QComboBox" name="combo_attribute">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down
18 changes: 15 additions & 3 deletions glue_vispy_viewers/scatter/layer_style_widget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="combo_size_attribute"/>
<widget class="QComboBox" name="combo_size_attribute">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="value_fixed_size"/>
Expand Down Expand Up @@ -209,7 +213,11 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="combo_cmap_attribute"/>
<widget class="QComboBox" name="combo_cmap_attribute">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
<item>
<widget class="QColorBox" name="label_color">
Expand Down Expand Up @@ -273,7 +281,11 @@
<number>0</number>
</property>
<item>
<widget class="QColormapCombo" name="combo_cmap"/>
<widget class="QColormapCombo" name="combo_cmap">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down
6 changes: 5 additions & 1 deletion glue_vispy_viewers/volume/layer_style_widget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@
<widget class="QLineEdit" name="value_max"/>
</item>
<item row="0" column="1" colspan="2">
<widget class="QComboBox" name="combo_attribute"/>
<widget class="QComboBox" name="combo_attribute">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QRadioButton" name="radio_subset_outline">
Expand Down

0 comments on commit db1b7d2

Please sign in to comment.