MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / updateDisplayUnit

Method updateDisplayUnit

src/qt/overviewpage.cpp:242–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void OverviewPage::updateDisplayUnit()
243{
244 if(walletModel && walletModel->getOptionsModel())
245 {
246 if (m_balances.balance != -1) {
247 setBalance(m_balances);
248 }
249
250 // Update txdelegate->unit with the current unit
251 txdelegate->unit = walletModel->getOptionsModel()->getDisplayUnit();
252
253 ui->listTransactions->update();
254 }
255}
256
257void OverviewPage::updateAlerts(const QString &warnings)
258{

Callers

nothing calls this directly

Calls 3

getDisplayUnitMethod · 0.80
getOptionsModelMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected