|
|
|
@ -1663,6 +1663,7 @@ class MainFrame(qt.QWidget):
|
|
|
|
|
|
|
|
|
|
self.view_dict[field.name] = self.table_widget
|
|
|
|
|
self.label_dict[field.name] = LabelWordWrap(field.label, self)
|
|
|
|
|
self.label_dict[field.name].setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
self.table_dict[field.name] = field
|
|
|
|
|
|
|
|
|
|
self.table_widget.itemClicked.connect(self.expert_remove(field.name))
|
|
|
|
@ -1689,7 +1690,7 @@ class MainFrame(qt.QWidget):
|
|
|
|
|
if brief:
|
|
|
|
|
widget_for_grid.setStyleSheet("background: transparent;")
|
|
|
|
|
wfg_layout = qt.QVBoxLayout(widget_for_grid)
|
|
|
|
|
wfg_layout.setSpacing(0)
|
|
|
|
|
wfg_layout.setSpacing(10)
|
|
|
|
|
wfg_layout.setAlignment(qt.Qt.AlignTop)
|
|
|
|
|
wfg_layout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
# add 2 button if field type = writable
|
|
|
|
@ -1698,7 +1699,8 @@ class MainFrame(qt.QWidget):
|
|
|
|
|
hh.setSectionsClickable(False)
|
|
|
|
|
|
|
|
|
|
unit_widget = qt.QWidget(self)
|
|
|
|
|
unit_widget.setFixedHeight(40)
|
|
|
|
|
unit_widget.setFixedHeight(32)
|
|
|
|
|
wfg_layout.setAlignment(qt.Qt.AlignTop)
|
|
|
|
|
unit_layout = qt.QHBoxLayout(unit_widget)
|
|
|
|
|
unit_layout.setContentsMargins(0, 0, 0, 0)
|
|
|
|
|
unit_layout.setSpacing(3)
|
|
|
|
|