mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
top part of expandable widget is not used elsewhere
This commit is contained in:
parent
3a566b306f
commit
bafc82364d
2 changed files with 4 additions and 4 deletions
|
|
@ -1631,7 +1631,7 @@ class DictWidget(QtWidgets.QWidget, ConfigObject):
|
|||
)
|
||||
item.value_changed.connect(self._on_value_change)
|
||||
|
||||
self.body_widget.top_part.layout().addWidget(item)
|
||||
self.body_widget.side_line_layout.addWidget(item)
|
||||
self.checkbox_widget = item
|
||||
self.input_fields.append(item)
|
||||
return item
|
||||
|
|
|
|||
|
|
@ -95,18 +95,18 @@ class ExpandingWidget(QtWidgets.QWidget):
|
|||
|
||||
self.setAttribute(QtCore.Qt.WA_StyledBackground)
|
||||
|
||||
self.top_part = top_part
|
||||
self.side_line_widget = side_line_widget
|
||||
self.side_line_layout = side_line_layout
|
||||
self.button_toggle = button_toggle
|
||||
self.label_widget = label_widget
|
||||
|
||||
self.top_part.clicked.connect(self._top_part_clicked)
|
||||
top_part.clicked.connect(self._top_part_clicked)
|
||||
self.button_toggle.clicked.connect(self.toggle_content)
|
||||
|
||||
self.main_layout = QtWidgets.QVBoxLayout(self)
|
||||
self.main_layout.setContentsMargins(0, 0, 0, 0)
|
||||
self.main_layout.setSpacing(0)
|
||||
self.main_layout.addWidget(self.top_part)
|
||||
self.main_layout.addWidget(top_part)
|
||||
|
||||
def hide_toolbox(self, hide_content=False):
|
||||
self.button_toggle.setArrowType(QtCore.Qt.NoArrow)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue