From 67de616a29de16651f34e5603134f59ceaa654ff Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 11 Nov 2014 17:20:15 +0100 Subject: [PATCH] add copy button to receive tab --- gui/qt/main_window.py | 7 ++++++- icons.qrc | 1 + icons/copy.png | Bin 0 -> 2111 bytes 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 icons/copy.png diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 18b5df3ba..93565c4aa 100644 --- 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 index 437f85b9a..94fd43e3c 100644 --- a/icons.qrc +++ b/icons.qrc @@ -7,6 +7,7 @@ icons/clock4.png icons/clock5.png icons/confirmed.png + icons/copy.png icons/expired.png icons/key.png icons/lock.png diff --git a/icons/copy.png b/icons/copy.png new file mode 100644 index 0000000000000000000000000000000000000000..b82da41bf7e365e18e56239eb249f94c26ff1fa4 GIT binary patch literal 2111 zcmV-F2*CG=P)?C)f_oWgjW+<%+gu+&a)B!EN99X@jJt=qGH8S7`< z|Kyp2=a==pxpTx@S&hKkOad^L0=u?4CR+A`J8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