diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-05-05 05:57:08 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-05-05 05:57:08 +0300 |
commit | 73529f0859c060087dd41e9e176fd4198d0f385f (patch) | |
tree | 386b54d3d940d3e6a357d3ac8f3c1d4f0fa4bd66 /src/qt/receiverequestdialog.cpp | |
parent | 68288ef0c15522799d4bf6239d2ae1e8086b5abf (diff) |
qt: Rename slot to updateDisplayUnit()
This commit does not change behavior.
Diffstat (limited to 'src/qt/receiverequestdialog.cpp')
-rw-r--r-- | src/qt/receiverequestdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/receiverequestdialog.cpp b/src/qt/receiverequestdialog.cpp index 0366d62753..d385c42821 100644 --- a/src/qt/receiverequestdialog.cpp +++ b/src/qt/receiverequestdialog.cpp @@ -37,7 +37,7 @@ void ReceiveRequestDialog::setModel(WalletModel *_model) this->model = _model; if (_model) - connect(_model->getOptionsModel(), &OptionsModel::displayUnitChanged, this, &ReceiveRequestDialog::update); + connect(_model->getOptionsModel(), &OptionsModel::displayUnitChanged, this, &ReceiveRequestDialog::updateDisplayUnit); // update the display unit if necessary update(); @@ -66,8 +66,8 @@ void ReceiveRequestDialog::setInfo(const SendCoinsRecipient &_info) if (!info.amount) { ui->amount_tag->hide(); ui->amount_content->hide(); - } // Amount is set in update() slot. - update(); + } // Amount is set in updateDisplayUnit() slot. + updateDisplayUnit(); if (!info.label.isEmpty()) { ui->label_content->setText(info.label); @@ -91,7 +91,7 @@ void ReceiveRequestDialog::setInfo(const SendCoinsRecipient &_info) } } -void ReceiveRequestDialog::update() +void ReceiveRequestDialog::updateDisplayUnit() { if (!model) return; ui->amount_content->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), info.amount)); |