mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
qt: Rename slot to updateDisplayUnit()
This commit does not change behavior.
This commit is contained in:
parent
68288ef0c1
commit
73529f0859
2 changed files with 5 additions and 6 deletions
|
@ -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));
|
||||
|
|
|
@ -29,8 +29,7 @@ public:
|
|||
private Q_SLOTS:
|
||||
void on_btnCopyURI_clicked();
|
||||
void on_btnCopyAddress_clicked();
|
||||
|
||||
void update();
|
||||
void updateDisplayUnit();
|
||||
|
||||
private:
|
||||
Ui::ReceiveRequestDialog *ui;
|
||||
|
|
Loading…
Add table
Reference in a new issue