Skip to content

Commit

Permalink
BUG: Restore widget name in qMRMLSegmentEditorWidget
Browse files Browse the repository at this point in the history
This commit fixes a regression introduced in
1b94b0d (ENH: Improve Segment Editor widget layout)

It restores the object name from `Form` to `SegmentsTableResizableFrame`.

Using an explicit widget name is relevant in the context of prototyping
and/or custom application development.

Additionally, it adds the missing `customwidget` definition
associated with the `ctkMenuButton` custom widget.
Sew https://doc.qt.io/qt-5/designer-creating-custom-widgets.html

Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]>
  • Loading branch information
2 people authored and jamesobutler committed Aug 11, 2022
1 parent c68e908 commit da82798
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="ctkExpandableWidget" name="Form">
<widget class="ctkExpandableWidget" name="SegmentsTableResizableFrame">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
Expand Down Expand Up @@ -493,6 +493,11 @@
<extends>QTextBrowser</extends>
<header>ctkFittedTextBrowser.h</header>
</customwidget>
<customwidget>
<class>ctkMenuButton</class>
<extends>QPushButton</extends>
<header>ctkMenuButton.h</header>
</customwidget>
<customwidget>
<class>ctkRangeWidget</class>
<extends>QWidget</extends>
Expand Down

0 comments on commit da82798

Please sign in to comment.