@@ -100,10 +100,10 @@ def set_entry(self, row, entry):
100100 # tool buttons (2nd column)
101101 widact = QtWidgets .QWidget (self )
102102 horz_layout = QtWidgets .QHBoxLayout (widact )
103- horz_layout .setContentsMargins (0 , 0 , 5 , 0 )
104103 horz_layout .setAlignment (QtCore .Qt .AlignmentFlag .AlignRight )
104+ horz_layout .setSpacing (2 )
105+ horz_layout .setContentsMargins (0 , 0 , 2 , 0 )
105106
106- col_width = 0
107107 for action in self .get_entry_actions (row , entry ):
108108 if action ["name" ] in self .active_actions :
109109 tbact = QtWidgets .QToolButton (widact )
@@ -113,10 +113,8 @@ def set_entry(self, row, entry):
113113 tbact .clicked .connect (action ["function" ])
114114 horz_layout .addWidget (tbact )
115115 row_height = tbact .geometry ().height ()
116- col_width += row_height
117- tbact .setFixedWidth (row_height )
116+ tbact .setFixedSize (row_height - 2 , row_height - 2 )
118117
119- self .tableWidget .setColumnWidth (1 , col_width )
120118 self .tableWidget .setCellWidget (row , 1 , widact )
121119
122120 return widact
0 commit comments