diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-10-18 19:42:40 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-10-25 13:25:25 +0200 |
commit | 70b14636cd60529c87b2cc61516f5d1bf49299a5 (patch) | |
tree | d2bec1b1e3fa9991320b4e062ffe82a40193e68f /src/qt/receiverequestdialog.cpp | |
parent | 33a2febf5de0c7bd73c0ea409584487bd9995643 (diff) |
qt: general polish after adding new receive flow
- We no longer have an address book, but "address lists", update message
accordingly
- Add tooltips here and there
- Clarify text on buttons
- add Copy Address button to receive request dialog
Diffstat (limited to 'src/qt/receiverequestdialog.cpp')
-rw-r--r-- | src/qt/receiverequestdialog.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/qt/receiverequestdialog.cpp b/src/qt/receiverequestdialog.cpp index f6031e2b47..cb0a07fcdf 100644 --- a/src/qt/receiverequestdialog.cpp +++ b/src/qt/receiverequestdialog.cpp @@ -44,12 +44,15 @@ void QRImageWidget::mousePressEvent(QMouseEvent *event) { if(event->button() == Qt::LeftButton) { + event->accept(); QMimeData *mimeData = new QMimeData; mimeData->setImageData(exportImage()); QDrag *drag = new QDrag(this); drag->setMimeData(mimeData); drag->exec(); + } else { + QLabel::mousePressEvent(event); } } @@ -119,9 +122,9 @@ void ReceiveRequestDialog::update() ui->btnSaveAs->setEnabled(false); QString html; html += "<html><font face='verdana, arial, helvetica, sans-serif'>"; - html += "<a href=\""+uri+"\">" + GUIUtil::HtmlEscape(uri) + "</a><br>"; - html += "<br>"; html += "<b>"+tr("Payment information")+"</b><br>"; + html += "<b>"+tr("URI")+"</b>: "; + html += "<a href=\""+uri+"\">" + GUIUtil::HtmlEscape(uri) + "</a><br>"; html += "<b>"+tr("Address")+"</b>: " + GUIUtil::HtmlEscape(info.address) + "<br>"; if(info.amount) html += "<b>"+tr("Amount")+"</b>: " + BitcoinUnits::formatWithUnit(model->getDisplayUnit(), info.amount) + "<br>"; @@ -173,3 +176,8 @@ void ReceiveRequestDialog::on_btnCopyURI_clicked() QApplication::clipboard()->setText(uri, QClipboard::Selection); } +void ReceiveRequestDialog::on_btnCopyAddress_clicked() +{ + QApplication::clipboard()->setText(info.address, QClipboard::Clipboard); + QApplication::clipboard()->setText(info.address, QClipboard::Selection); +} |