From 24b094326650c50fae411e965e2fc8ef706fc643 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 11 Mar 2019 18:53:53 +0100 Subject: [PATCH] qt Coins tab: reorder columns so that outpoint is first --- electrum/gui/qt/utxo_list.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py index 9e1343db8..75bf51061 100644 --- a/electrum/gui/qt/utxo_list.py +++ b/electrum/gui/qt/utxo_list.py @@ -37,11 +37,11 @@ from .util import MyTreeView, ColorScheme, MONOSPACE_FONT class UTXOList(MyTreeView): class Columns(IntEnum): - ADDRESS = 0 - LABEL = 1 - AMOUNT = 2 - HEIGHT = 3 - OUTPOINT = 4 + OUTPOINT = 0 + ADDRESS = 1 + LABEL = 2 + AMOUNT = 3 + HEIGHT = 4 headers = { Columns.ADDRESS: _('Address'), @@ -74,11 +74,11 @@ class UTXOList(MyTreeView): address = x['address'] height = x.get('height') name = x.get('prevout_hash') + ":%d"%x.get('prevout_n') - name_short = x.get('prevout_hash')[:10] + '...' + ":%d"%x.get('prevout_n') + name_short = x.get('prevout_hash')[:16] + '...' + ":%d"%x.get('prevout_n') self.utxo_dict[name] = x label = self.wallet.get_label(x.get('prevout_hash')) amount = self.parent.format_amount(x['value'], whitespaces=True) - labels = [address, label, amount, '%d'%height, name_short] + labels = [name_short, address, label, amount, '%d'%height] utxo_item = [QStandardItem(x) for x in labels] self.set_editability(utxo_item) utxo_item[self.Columns.ADDRESS].setFont(QFont(MONOSPACE_FONT))