aboutsummaryrefslogtreecommitdiff
path: root/src/qt/sendcoinsentry.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-10-15 15:26:22 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-10-15 15:26:22 +0200
commit75fa27eacaa12ce9c9630db787f69fd0d70bcfc3 (patch)
tree8887c2197fcdf65058e9996733f65478dc4df546 /src/qt/sendcoinsentry.cpp
parent38d15d8b427904a936a4fb4b8ac390bd637e1638 (diff)
downloadbitcoin-75fa27eacaa12ce9c9630db787f69fd0d70bcfc3.tar.xz
make BitcoinAmountField::setReadOnly() usable
- use it for secure payment-requests (this change allows a copy&paste of the amount and looks a little nicer than just a disabled GUI element)
Diffstat (limited to 'src/qt/sendcoinsentry.cpp')
-rw-r--r--src/qt/sendcoinsentry.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp
index 59724c94f4..aa671e0540 100644
--- a/src/qt/sendcoinsentry.cpp
+++ b/src/qt/sendcoinsentry.cpp
@@ -174,6 +174,7 @@ void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
ui->payTo_s->setText(recipient.authenticatedMerchant);
ui->memoTextLabel_s->setText(QString::fromStdString(details.memo()));
ui->payAmount_s->setValue(recipient.amount);
+ ui->payAmount_s->setReadOnly(true);
setCurrentWidget(ui->SendCoinsSecure);
}
}