DictWidget used as widget has ability to not add borders around the widget

This commit is contained in:
iLLiCiTiT 2020-09-23 19:14:20 +02:00
parent 0f05901ac7
commit 3a6c8e32eb

View file

@ -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)