Skip to content

Commit

Permalink
Merge pull request #946 from jbellister-slac/basic_settings_layout
Browse files Browse the repository at this point in the history
ENH: Set resize policy for the QFormLayout of the basic settings widget
  • Loading branch information
jbellister-slac authored Nov 9, 2022
2 parents 2777b32 + 66f61ee commit 7bf65fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pydm/widgets/designer_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def get_qt_properties(cls):


def get_helper_label_text(attr: str) -> str:
spaced = re.sub("(.)([A-Z])", r"\1 \2", attr)
spaced = re.sub("(PyDM|.)([A-Z])", r"\1 \2", attr)
return spaced.strip().capitalize()


Expand Down Expand Up @@ -347,6 +347,7 @@ def setup_ui(self):
self.setLayout(vlayout)

settings_form = QtWidgets.QFormLayout()
settings_form.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
vlayout.addLayout(settings_form)

for helper_widget in self._create_helper_widgets(settings_form):
Expand Down

0 comments on commit 7bf65fa

Please sign in to comment.