electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 6226b658ea4c62ca484c54b9567aa1996f42e7a1
parent 4eeacde2b1c8bfc5177f6e794ea690d696f34589
Author: ThomasV <thomasv@gitorious>
Date:   Mon, 16 Jun 2014 18:46:30 +0200

tweak receive layout

Diffstat:
Mgui/qt/main_window.py | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -693,21 +693,21 @@ class ElectrumWindow(QMainWindow): self.receive_qr = QRCodeWidget() grid.addWidget(self.receive_qr, 0, 4, 5, 2) + grid.setRowStretch(5, 1) + self.receive_requests_label = QLabel(_('Saved Requests')) self.receive_list = MyTreeWidget(self) self.receive_list.customContextMenuRequested.connect(self.receive_list_menu) self.receive_list.currentItemChanged.connect(self.receive_item_changed) self.receive_list.itemClicked.connect(self.receive_item_changed) - self.receive_list.setHeaderLabels( [_('Address'), _('Message'), _('Amount'), _('Status')] ) - self.receive_list.setColumnWidth(0, 320) + self.receive_list.setHeaderLabels( [_('Address'), _('Message'), _('Amount')] ) + self.receive_list.setColumnWidth(0, 340) h = self.receive_list.header() h.setStretchLastSection(False) h.setResizeMode(1, QHeaderView.Stretch) - grid.addWidget(self.receive_requests_label, 5, 0) - grid.addWidget(self.receive_list, 6, 0, 1, 6) - - grid.setRowStretch(7, 1) + grid.addWidget(self.receive_requests_label, 6, 0) + grid.addWidget(self.receive_list, 7, 0, 1, 6) return w def receive_item_changed(self, item): @@ -771,7 +771,7 @@ class ElectrumWindow(QMainWindow): self.receive_list.clear() for address, v in self.receive_requests.items(): amount, message = v - item = QTreeWidgetItem( [ address, message, self.format_amount(amount) if amount else "", ""] ) + item = QTreeWidgetItem( [ address, message, self.format_amount(amount) if amount else ""] ) self.receive_list.addTopLevelItem(item)