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 | |
parent | 68288ef0c15522799d4bf6239d2ae1e8086b5abf (diff) | |
download | bitcoin-73529f0859c060087dd41e9e176fd4198d0f385f.tar.xz |
qt: Rename slot to updateDisplayUnit()
This commit does not change behavior.
-rw-r--r-- | src/qt/receiverequestdialog.cpp | 8 | ||||
-rw-r--r-- | src/qt/receiverequestdialog.h | 3 |
2 files changed, 5 insertions, 6 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)); diff --git a/src/qt/receiverequestdialog.h b/src/qt/receiverequestdialog.h index 40e3d5ffa8..846478643d 100644 --- a/src/qt/receiverequestdialog.h +++ b/src/qt/receiverequestdialog.h @@ -29,8 +29,7 @@ public: private Q_SLOTS: void on_btnCopyURI_clicked(); void on_btnCopyAddress_clicked(); - - void update(); + void updateDisplayUnit(); private: Ui::ReceiveRequestDialog *ui; |