Better formatting of connections table header

This commit is contained in:
Dmitri Bogomolov 2018-02-22 12:33:16 +02:00
parent 81f3d366a6
commit 574286f21a
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 2 additions and 7 deletions

View File

@ -25,10 +25,8 @@ class NetworkStatus(QtWidgets.QWidget, RetranslateMixin):
widgets.load('networkstatus.ui', self)
header = self.tableWidgetConnectionCount.horizontalHeader()
# header.setSectionResizeMode(0, QtWidgets.QHeaderView.Stretch)
for column in range(0, 4):
header.setSectionResizeMode(
column, QtWidgets.QHeaderView.ResizeToContents)
header.setSectionResizeMode(QtWidgets.QHeaderView.ResizeToContents)
header.setSectionResizeMode(0, QtWidgets.QHeaderView.Stretch)
# Somehow this value was 5 when I tested
if header.sortIndicatorSection() > 4:

View File

@ -109,9 +109,6 @@
<attribute name="horizontalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>