From 1cae5201916abd001750d3f642cc5bde3c71af1a Mon Sep 17 00:00:00 2001
From: Dmitri Bogomolov <4glitch@gmail.com>
Date: Thu, 22 Feb 2018 12:33:16 +0200
Subject: [PATCH] Better formatting of connections table header
---
src/bitmessageqt/networkstatus.py | 7 +++----
src/bitmessageqt/networkstatus.ui | 3 ---
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/bitmessageqt/networkstatus.py b/src/bitmessageqt/networkstatus.py
index b1f3d4de..ef1265af 100644
--- a/src/bitmessageqt/networkstatus.py
+++ b/src/bitmessageqt/networkstatus.py
@@ -24,10 +24,9 @@ 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)
+ header.setSectionResizeMode(2, QtWidgets.QHeaderView.Stretch)
# Somehow this value was 5 when I tested
if header.sortIndicatorSection() > 4:
diff --git a/src/bitmessageqt/networkstatus.ui b/src/bitmessageqt/networkstatus.ui
index 14aeca6e..7c40a002 100644
--- a/src/bitmessageqt/networkstatus.ui
+++ b/src/bitmessageqt/networkstatus.ui
@@ -109,9 +109,6 @@
false
-
- true
-
false