Better formatting of connections table header
This commit is contained in:
parent
70f0882e27
commit
4255f96d0f
|
@ -20,10 +20,8 @@ class NetworkStatus(QtWidgets.QWidget, RetranslateMixin):
|
||||||
widgets.load('networkstatus.ui', self)
|
widgets.load('networkstatus.ui', self)
|
||||||
|
|
||||||
header = self.tableWidgetConnectionCount.horizontalHeader()
|
header = self.tableWidgetConnectionCount.horizontalHeader()
|
||||||
# header.setSectionResizeMode(0, QtWidgets.QHeaderView.Stretch)
|
header.setSectionResizeMode(QtWidgets.QHeaderView.ResizeToContents)
|
||||||
for column in range(0, 4):
|
header.setSectionResizeMode(0, QtWidgets.QHeaderView.Stretch)
|
||||||
header.setSectionResizeMode(
|
|
||||||
column, QtWidgets.QHeaderView.ResizeToContents)
|
|
||||||
|
|
||||||
# Somehow this value was 5 when I tested
|
# Somehow this value was 5 when I tested
|
||||||
if header.sortIndicatorSection() > 4:
|
if header.sortIndicatorSection() > 4:
|
||||||
|
|
Reference in New Issue
Block a user