- fixed the sizePolicy for the FCComboBox widgets in the Preferences that holds the preprocessors

This commit is contained in:
Marius Stanciu
2020-10-29 16:47:51 +02:00
parent fcfc819fff
commit a476d9d8f1
3 changed files with 3 additions and 0 deletions

View File

@@ -259,6 +259,7 @@ class GeometryOptPrefGroupUI(OptionsGroupUI):
)
self.pp_geometry_name_cb = FCComboBox()
self.pp_geometry_name_cb.setFocusPolicy(Qt.StrongFocus)
self.pp_geometry_name_cb.setSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred)
grid1.addWidget(pp_label, 13, 0)
grid1.addWidget(self.pp_geometry_name_cb, 13, 1)

View File

@@ -226,6 +226,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI):
self.pp_excellon_name_cb = FCComboBox()
self.pp_excellon_name_cb.setFocusPolicy(Qt.StrongFocus)
self.pp_excellon_name_cb.setSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred)
grid0.addWidget(pp_excellon_label, 14, 0)
grid0.addWidget(self.pp_excellon_name_cb, 14, 1, 1, 2)