mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 05:34:57 +01:00
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)
This commit is contained in:
@@ -130,9 +130,10 @@ void BitcoinAmountField::setValue(qint64 value)
|
||||
setText(BitcoinUnits::format(currentUnit, value));
|
||||
}
|
||||
|
||||
void BitcoinAmountField::setReadOnly(bool fReadeOnly)
|
||||
void BitcoinAmountField::setReadOnly(bool fReadOnly)
|
||||
{
|
||||
// TODO ...
|
||||
amount->setReadOnly(fReadOnly);
|
||||
unit->setEnabled(!fReadOnly);
|
||||
}
|
||||
|
||||
void BitcoinAmountField::unitChanged(int idx)
|
||||
|
||||
Reference in New Issue
Block a user