[view] improvement: table columns width for maximized window

This commit is contained in:
Vinicius Moreira
2022-04-18 11:41:38 -03:00
parent 4becff2340
commit 2d518f891d
2 changed files with 4 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Improvements
- UI
- using pre-defined sizes for the main window (percentages do not work well with the current UI)
- table columns width for maximized window
## [0.10.2] 2022-04-16
### Improvements

View File

@@ -570,10 +570,10 @@ class PackagesTable(QTableWidget):
header_horizontal = self.horizontalHeader()
for i in range(self.columnCount()):
if maximized:
if i not in (4, 5, 8):
header_horizontal.setSectionResizeMode(i, QHeaderView.ResizeToContents)
else:
if i in (2, 3):
header_horizontal.setSectionResizeMode(i, QHeaderView.Stretch)
else:
header_horizontal.setSectionResizeMode(i, QHeaderView.ResizeToContents)
else:
header_horizontal.setSectionResizeMode(i, policy)