[improvement][ui] widgets visibility settings

This commit is contained in:
Vinícius Moreira
2020-01-10 11:46:16 -03:00
parent d8d603b73c
commit bbd5c1b877
3 changed files with 18 additions and 13 deletions

View File

@@ -456,3 +456,9 @@ class AppsTable(QTableWidget):
header_horizontal = self.horizontalHeader()
for i in range(self.columnCount()):
header_horizontal.setSectionResizeMode(i, policy)
def get_width(self):
w = self.verticalHeader().width() + 4 # +4 seems to be needed
for i in range(self.columnCount()):
w += self.columnWidth(i) # seems to include gridline (on my machine)
return w