commit 67de616a29de16651f34e5603134f59ceaa654ff
parent 10ef0fbdf0076de6c3ecd64e97081527a31e1f32
Author: ThomasV <thomasv@gitorious>
Date: Tue, 11 Nov 2014 17:20:15 +0100
add copy button to receive tab
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -696,6 +696,11 @@ class ElectrumWindow(QMainWindow):
grid.addWidget(self.receive_address_e, 0, 1, 1, 3)
self.receive_address_e.textChanged.connect(self.update_receive_qr)
+ self.copy_button = QPushButton()
+ self.copy_button.setIcon(QIcon(":icons/copy.png"))
+ self.copy_button.clicked.connect(lambda: self.app.clipboard().setText(self.receive_address_e.text()))
+ grid.addWidget(self.copy_button, 0, 4)
+
self.receive_message_e = QLineEdit()
grid.addWidget(QLabel(_('Message')), 1, 0)
grid.addWidget(self.receive_message_e, 1, 1, 1, 3)
@@ -715,7 +720,7 @@ class ElectrumWindow(QMainWindow):
grid.setRowStretch(4, 1)
self.receive_qr = QRCodeWidget(fixedSize=200)
- grid.addWidget(self.receive_qr, 0, 4, 5, 2)
+ grid.addWidget(self.receive_qr, 0, 5, 5, 2)
self.receive_qr.mousePressEvent = lambda x: self.toggle_qr_window()
grid.setRowStretch(5, 1)
diff --git a/icons.qrc b/icons.qrc
@@ -7,6 +7,7 @@
<file>icons/clock4.png</file>
<file>icons/clock5.png</file>
<file>icons/confirmed.png</file>
+ <file>icons/copy.png</file>
<file>icons/expired.png</file>
<file>icons/key.png</file>
<file>icons/lock.png</file>
diff --git a/icons/copy.png b/icons/copy.png
Binary files differ.