From 8cccf1eec514362649e8877f212705a3b4071276 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 5 Sep 2015 15:02:33 +0900 Subject: [PATCH] Don't resize extra column to contents Something in QT makes this very slow for this column after editing a label --- plugins/exchange_rate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py index cf5511936..845e23246 100644 --- a/plugins/exchange_rate.py +++ b/plugins/exchange_rate.py @@ -340,7 +340,10 @@ class Plugin(BasePlugin): return history_list = window.history_list history_list.setColumnCount(7) - history_list.header().setResizeMode(6, QHeaderView.ResizeToContents) + # For unclear reasons setting this column to ResizeToContents + # makes e.g. label editing very slow + history_list.setColumnWidth(6, 120) + #window.history_list.header().setResizeMode(6, QHeaderView.ResizeToConte history_list.setHeaderLabels([ '', '', _('Date'), _('Description') , _('Amount'), _('Balance'), _('Fiat Amount')] ) for item, tx in entries: tx_hash, conf, value, timestamp, balance = tx