aboutsummaryrefslogtreecommitdiff
path: root/src/qt/receiverequestdialog.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-11-16 17:52:37 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-11-16 17:52:37 +0100
commit79fac3f427da4ac3376b5c3a8a638ad579da8594 (patch)
treea12917a3c18aa43b7456c5b0ac99cf0e1ff7681d /src/qt/receiverequestdialog.cpp
parent3443adecf100181c6e668f2e7a09bf2cfd794621 (diff)
[Qt] use GUIUtil::setClipboard() where possible
Diffstat (limited to 'src/qt/receiverequestdialog.cpp')
-rw-r--r--src/qt/receiverequestdialog.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/qt/receiverequestdialog.cpp b/src/qt/receiverequestdialog.cpp
index a8a1beee6e..7e92715df8 100644
--- a/src/qt/receiverequestdialog.cpp
+++ b/src/qt/receiverequestdialog.cpp
@@ -11,11 +11,11 @@
#include "optionsmodel.h"
#include "walletmodel.h"
-#include <QPixmap>
#include <QClipboard>
-#include <QMouseEvent>
#include <QDrag>
#include <QMimeData>
+#include <QMouseEvent>
+#include <QPixmap>
#if QT_VERSION < 0x050000
#include <QUrl>
#endif
@@ -177,13 +177,10 @@ void ReceiveRequestDialog::update()
void ReceiveRequestDialog::on_btnCopyURI_clicked()
{
- QString uri = GUIUtil::formatBitcoinURI(info);
- QApplication::clipboard()->setText(uri, QClipboard::Clipboard);
- QApplication::clipboard()->setText(uri, QClipboard::Selection);
+ GUIUtil::setClipboard(GUIUtil::formatBitcoinURI(info));
}
void ReceiveRequestDialog::on_btnCopyAddress_clicked()
{
- QApplication::clipboard()->setText(info.address, QClipboard::Clipboard);
- QApplication::clipboard()->setText(info.address, QClipboard::Selection);
+ GUIUtil::setClipboard(info.address);
}