- 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

@ -15,6 +15,7 @@ CHANGELOG for FlatCAM beta
- minor change for the FCComboBox UI element by setting its size policy as ignored so it will not expand the notebook when the name of one of its items is very long
- added a protection on opening the tools database UI if the tools DB file is not loaded
- fixed NCC Tool not working with the new changes; the check for not having complete isolation is just a Warning
- fixed the sizePolicy for the FCComboBox widgets in the Preferences that holds the preprocessors
28.10.2020

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)