Merge branch 'v0.6' into qt5-wip #2237
|
@ -24,10 +24,9 @@ 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(
|
header.setSectionResizeMode(2, QtWidgets.QHeaderView.Stretch)
|
||||||
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:
|
||||||
|
|
|
@ -109,9 +109,6 @@
|
||||||
<attribute name="horizontalHeaderHighlightSections">
|
<attribute name="horizontalHeaderHighlightSections">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="horizontalHeaderStretchLastSection">
|
|
||||||
<bool>true</bool>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="verticalHeaderVisible">
|
<attribute name="verticalHeaderVisible">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
|
Reference in New Issue
Block a user