aboutsummaryrefslogtreecommitdiff
path: root/src/qt/receiverequestdialog.cpp
diff options
context:
space:
mode:
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);
}