|
|
|
@ -1690,6 +1690,7 @@ class MainFrame(qt.QWidget):
|
|
|
|
|
widget_for_grid.setStyleSheet("background: transparent;")
|
|
|
|
|
wfg_layout = qt.QVBoxLayout(widget_for_grid)
|
|
|
|
|
wfg_layout.setSpacing(0)
|
|
|
|
|
wfg_layout.setAlignment(qt.Qt.AlignTop)
|
|
|
|
|
wfg_layout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
# add 2 button if field type = writable
|
|
|
|
|
if field.type == 'writable':
|
|
|
|
@ -1697,8 +1698,9 @@ class MainFrame(qt.QWidget):
|
|
|
|
|
hh.setSectionsClickable(False)
|
|
|
|
|
|
|
|
|
|
unit_widget = qt.QWidget(self)
|
|
|
|
|
unit_widget.setFixedHeight(40)
|
|
|
|
|
unit_layout = qt.QHBoxLayout(unit_widget)
|
|
|
|
|
unit_layout.setContentsMargins(0, 0, 0, 6)
|
|
|
|
|
unit_layout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
unit_layout.setSpacing(3)
|
|
|
|
|
|
|
|
|
|
plus_but = qt.QPushButton(self)
|
|
|
|
|