using QGridLayout in dict and dict-invisible

This commit is contained in:
iLLiCiTiT 2020-09-17 12:26:53 +02:00
parent 828ebde3de
commit 365c6852c0

View file

@ -1969,7 +1969,7 @@ class DictWidget(QtWidgets.QWidget, SettingObject):
content_widget = QtWidgets.QWidget(body_widget)
content_widget.setObjectName("ContentWidget")
content_widget.setProperty("content_state", content_state)
content_layout = QtWidgets.QVBoxLayout(content_widget)
content_layout = QtWidgets.QGridLayout(content_widget)
content_layout.setContentsMargins(CHILD_OFFSET, 5, 0, bottom_margin)
body_widget.set_content_widget(content_widget)
@ -2278,10 +2278,12 @@ class DictInvisible(QtWidgets.QWidget, SettingObject):
self.setAttribute(QtCore.Qt.WA_TranslucentBackground)
layout = QtWidgets.QVBoxLayout(self)
layout = QtWidgets.QGridLayout(self)
layout.setContentsMargins(0, 0, 0, 0)
layout.setSpacing(5)
self.content_layout = layout
self.input_fields = []
self.key = input_data["key"]