MCPcopy Create free account
hub / github.com/ElementsProject/elements / updateDisplayUnit

Method updateDisplayUnit

src/qt/sendcoinsentry.cpp:256–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256void SendCoinsEntry::updateDisplayUnit()
257{
258 if(model && model->getOptionsModel())
259 {
260 // Update payAmount with the current unit
261 ui->payAmount->setDisplayUnit(model->getOptionsModel()->getDisplayUnit());
262 ui->payAmount_is->setDisplayUnit(model->getOptionsModel()->getDisplayUnit());
263 ui->payAmount_s->setDisplayUnit(model->getOptionsModel()->getDisplayUnit());
264 }
265}
266
267void SendCoinsEntry::changeEvent(QEvent* e)
268{

Callers

nothing calls this directly

Calls 3

getDisplayUnitMethod · 0.80
getOptionsModelMethod · 0.45
setDisplayUnitMethod · 0.45

Tested by

no test coverage detected