mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
DictWidget used as widget has ability to not add borders around the widget
This commit is contained in:
parent
0f05901ac7
commit
3a6c8e32eb
1 changed files with 2 additions and 0 deletions
|
|
@ -2244,6 +2244,8 @@ class DictWidget(QtWidgets.QWidget, SettingObject):
|
|||
def _ui_as_widget(self, input_data):
|
||||
body = QtWidgets.QWidget(self)
|
||||
body.setObjectName("DictAsWidgetBody")
|
||||
show_borders = str(int(input_data.get("show_borders", True)))
|
||||
body.setProperty("show_borders", show_borders)
|
||||
|
||||
content_layout = QtWidgets.QGridLayout(body)
|
||||
content_layout.setContentsMargins(5, 5, 5, 5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue