mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-21 22:31:21 +02:00
qt: Rename slot to updateDisplayUnit()
This commit does not change behavior.
This commit is contained in:
parent
68288ef0c1
commit
73529f0859
@ -37,7 +37,7 @@ void ReceiveRequestDialog::setModel(WalletModel *_model)
|
|||||||
this->model = _model;
|
this->model = _model;
|
||||||
|
|
||||||
if (_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 the display unit if necessary
|
||||||
update();
|
update();
|
||||||
@ -66,8 +66,8 @@ void ReceiveRequestDialog::setInfo(const SendCoinsRecipient &_info)
|
|||||||
if (!info.amount) {
|
if (!info.amount) {
|
||||||
ui->amount_tag->hide();
|
ui->amount_tag->hide();
|
||||||
ui->amount_content->hide();
|
ui->amount_content->hide();
|
||||||
} // Amount is set in update() slot.
|
} // Amount is set in updateDisplayUnit() slot.
|
||||||
update();
|
updateDisplayUnit();
|
||||||
|
|
||||||
if (!info.label.isEmpty()) {
|
if (!info.label.isEmpty()) {
|
||||||
ui->label_content->setText(info.label);
|
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;
|
if (!model) return;
|
||||||
ui->amount_content->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), info.amount));
|
ui->amount_content->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), info.amount));
|
||||||
|
@ -29,8 +29,7 @@ public:
|
|||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void on_btnCopyURI_clicked();
|
void on_btnCopyURI_clicked();
|
||||||
void on_btnCopyAddress_clicked();
|
void on_btnCopyAddress_clicked();
|
||||||
|
void updateDisplayUnit();
|
||||||
void update();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::ReceiveRequestDialog *ui;
|
Ui::ReceiveRequestDialog *ui;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user