mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
network icon
This commit is contained in:
parent
1e565a37a7
commit
b44640015a
3 changed files with 16 additions and 6 deletions
|
@ -773,20 +773,29 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
d = QDialog(parent)
|
d = QDialog(parent)
|
||||||
d.setModal(1)
|
d.setModal(1)
|
||||||
|
d.setWindowTitle('Server')
|
||||||
|
d.setMinimumSize(375, 20)
|
||||||
|
|
||||||
vbox = QVBoxLayout()
|
vbox = QVBoxLayout()
|
||||||
vbox.addWidget(QLabel(status))
|
vbox.setSpacing(20)
|
||||||
|
|
||||||
grid = QGridLayout()
|
hbox = QHBoxLayout()
|
||||||
grid.setSpacing(8)
|
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 = QLineEdit()
|
||||||
host_line.setText("%s:%d"% (host,port) )
|
host_line.setText("%s:%d"% (host,port) )
|
||||||
grid.addWidget(QLabel('Server'), 2, 0)
|
hbox.addWidget(QLabel('Connect to:'))
|
||||||
grid.addWidget(host_line, 2, 1)
|
hbox.addWidget(host_line)
|
||||||
vbox.addLayout(grid)
|
vbox.addLayout(hbox)
|
||||||
|
|
||||||
servers_list = QTreeWidget(parent)
|
servers_list = QTreeWidget(parent)
|
||||||
servers_list.setHeaderLabels( [ 'Active servers'] )
|
servers_list.setHeaderLabels( [ 'Active servers'] )
|
||||||
|
servers_list.setMaximumHeight(150)
|
||||||
for item in wallet.interface.servers:
|
for item in wallet.interface.servers:
|
||||||
servers_list.addTopLevelItem(QTreeWidgetItem( [ item ] ))
|
servers_list.addTopLevelItem(QTreeWidgetItem( [ item ] ))
|
||||||
servers_list.connect(servers_list, SIGNAL('itemClicked(QTreeWidgetItem*, int)'), lambda x:host_line.setText( x.text(0) + ':50000' ))
|
servers_list.connect(servers_list, SIGNAL('itemClicked(QTreeWidgetItem*, int)'), lambda x:host_line.setText( x.text(0) + ':50000' ))
|
||||||
|
|
|
@ -8,5 +8,6 @@
|
||||||
<file>icons/status_disconnected.png</file>
|
<file>icons/status_disconnected.png</file>
|
||||||
<file>icons/status_waiting.svg</file>
|
<file>icons/status_waiting.svg</file>
|
||||||
<file>icons/unconfirmed.svg</file>
|
<file>icons/unconfirmed.svg</file>
|
||||||
|
<file>icons/network.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
BIN
client/icons/network.png
Normal file
BIN
client/icons/network.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
Loading…
Add table
Reference in a new issue