electrum

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

commit b44640015a89852499ccec8a1a80a649757704df
parent 1e565a37a70f10b8f9945b55313ebd3a6f627124
Author: thomasv <thomasv@gitorious>
Date:   Tue, 14 Feb 2012 15:34:13 +0100

network icon

Diffstat:
Mclient/gui_qt.py | 21+++++++++++++++------
Mclient/icons.qrc | 1+
Aclient/icons/network.png | 0
3 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/client/gui_qt.py b/client/gui_qt.py @@ -773,20 +773,29 @@ class ElectrumWindow(QMainWindow): d = QDialog(parent) d.setModal(1) + d.setWindowTitle('Server') + d.setMinimumSize(375, 20) vbox = QVBoxLayout() - vbox.addWidget(QLabel(status)) + vbox.setSpacing(20) - grid = QGridLayout() - grid.setSpacing(8) + hbox = QHBoxLayout() + l = QLabel() + l.setPixmap(QPixmap(":icons/network.png")) + hbox.addWidget(l) + hbox.addWidget(QLabel(status)) + vbox.addLayout(hbox) + + hbox = QHBoxLayout() host_line = QLineEdit() host_line.setText("%s:%d"% (host,port) ) - grid.addWidget(QLabel('Server'), 2, 0) - grid.addWidget(host_line, 2, 1) - vbox.addLayout(grid) + hbox.addWidget(QLabel('Connect to:')) + hbox.addWidget(host_line) + vbox.addLayout(hbox) servers_list = QTreeWidget(parent) servers_list.setHeaderLabels( [ 'Active servers'] ) + servers_list.setMaximumHeight(150) for item in wallet.interface.servers: servers_list.addTopLevelItem(QTreeWidgetItem( [ item ] )) servers_list.connect(servers_list, SIGNAL('itemClicked(QTreeWidgetItem*, int)'), lambda x:host_line.setText( x.text(0) + ':50000' )) diff --git a/client/icons.qrc b/client/icons.qrc @@ -8,5 +8,6 @@ <file>icons/status_disconnected.png</file> <file>icons/status_waiting.svg</file> <file>icons/unconfirmed.svg</file> + <file>icons/network.png</file> </qresource> </RCC> diff --git a/client/icons/network.png b/client/icons/network.png Binary files differ.