mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 14:24:15 +02:00
[view] improvement: table columns width for maximized window
This commit is contained in:
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
### Improvements
|
### Improvements
|
||||||
- UI
|
- UI
|
||||||
- using pre-defined sizes for the main window (percentages do not work well with the current 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
|
## [0.10.2] 2022-04-16
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|||||||
@@ -570,10 +570,10 @@ class PackagesTable(QTableWidget):
|
|||||||
header_horizontal = self.horizontalHeader()
|
header_horizontal = self.horizontalHeader()
|
||||||
for i in range(self.columnCount()):
|
for i in range(self.columnCount()):
|
||||||
if maximized:
|
if maximized:
|
||||||
if i not in (4, 5, 8):
|
if i in (2, 3):
|
||||||
header_horizontal.setSectionResizeMode(i, QHeaderView.ResizeToContents)
|
|
||||||
else:
|
|
||||||
header_horizontal.setSectionResizeMode(i, QHeaderView.Stretch)
|
header_horizontal.setSectionResizeMode(i, QHeaderView.Stretch)
|
||||||
|
else:
|
||||||
|
header_horizontal.setSectionResizeMode(i, QHeaderView.ResizeToContents)
|
||||||
else:
|
else:
|
||||||
header_horizontal.setSectionResizeMode(i, policy)
|
header_horizontal.setSectionResizeMode(i, policy)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user