|
|
@ -629,7 +629,7 @@ class ElectrumWindow(QMainWindow): |
|
|
|
buttons.addWidget(self.new_request_button) |
|
|
|
|
|
|
|
self.receive_requests_label = QLabel(_('My Requests')) |
|
|
|
self.receive_list = MyTreeWidget(self, self.receive_list_menu, [_('Date'), _('Account'), _('Address'), _('Description'), _('Amount'), _('Status')], []) |
|
|
|
self.receive_list = MyTreeWidget(self, self.receive_list_menu, [_('Date'), _('Account'), _('Address'), _('Description'), _('Amount'), _('Status')], 3) |
|
|
|
self.receive_list.currentItemChanged.connect(self.receive_item_changed) |
|
|
|
self.receive_list.itemClicked.connect(self.receive_item_changed) |
|
|
|
self.receive_list.setSortingEnabled(True) |
|
|
@ -901,7 +901,7 @@ class ElectrumWindow(QMainWindow): |
|
|
|
|
|
|
|
self.from_label = QLabel(_('From')) |
|
|
|
grid.addWidget(self.from_label, 3, 0) |
|
|
|
self.from_list = MyTreeWidget(self, self.from_list_menu, ['',''], [350, 50]) |
|
|
|
self.from_list = MyTreeWidget(self, self.from_list_menu, ['','']) |
|
|
|
self.from_list.setHeaderHidden(True) |
|
|
|
self.from_list.setMaximumHeight(80) |
|
|
|
grid.addWidget(self.from_list, 3, 1, 1, 3) |
|
|
@ -968,12 +968,11 @@ class ElectrumWindow(QMainWindow): |
|
|
|
self.fee_e.textChanged.connect(entry_changed) |
|
|
|
|
|
|
|
self.invoices_label = QLabel(_('Invoices')) |
|
|
|
self.invoices_list = MyTreeWidget( |
|
|
|
self, |
|
|
|
self.create_invoice_menu, |
|
|
|
[_('Date'), _('Requestor'), _('Description'), _('Amount'), _('Status')], |
|
|
|
[150, 150, None, 150, 100] |
|
|
|
) |
|
|
|
self.invoices_list = MyTreeWidget(self, self.create_invoice_menu, |
|
|
|
[_('Date'), _('Requestor'), _('Description'), _('Amount'), _('Status')], 2) |
|
|
|
self.invoices_list.header().setResizeMode(1, QHeaderView.Interactive) |
|
|
|
self.invoices_list.setColumnWidth(1, 200) |
|
|
|
|
|
|
|
vbox0 = QVBoxLayout() |
|
|
|
vbox0.addLayout(grid) |
|
|
|
vbox0.addLayout(buttons) |
|
|
@ -1309,14 +1308,14 @@ class ElectrumWindow(QMainWindow): |
|
|
|
return w |
|
|
|
|
|
|
|
def create_addresses_tab(self): |
|
|
|
l = MyTreeWidget(self, self.create_receive_menu, [ _('Address'), _('Label'), _('Balance'), _('Tx')], [370, None, 130]) |
|
|
|
l = MyTreeWidget(self, self.create_receive_menu, [ _('Address'), _('Label'), _('Balance'), _('Tx')], 1) |
|
|
|
l.setSelectionMode(QAbstractItemView.ExtendedSelection) |
|
|
|
l.setSortingEnabled(False) |
|
|
|
self.address_list = l |
|
|
|
return self.create_list_tab(l) |
|
|
|
|
|
|
|
def create_contacts_tab(self): |
|
|
|
l = MyTreeWidget(self, self.create_contact_menu, [_('Key'), _('Value'), _('Type')], [250, None, 130]) |
|
|
|
l = MyTreeWidget(self, self.create_contact_menu, [_('Key'), _('Value'), _('Type')], 1) |
|
|
|
self.contacts_list = l |
|
|
|
return self.create_list_tab(l) |
|
|
|
|
|
|
|