mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
qt Coins tab: reorder columns so that outpoint is first
This commit is contained in:
parent
752c518bdc
commit
24b0943266
1 changed files with 7 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue