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

Method setDisplayUnit

src/qt/optionsmodel.cpp:463–472  ·  view source on GitHub ↗

Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal */

Source from the content-addressed store, hash-verified

461
462/** Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal */
463void OptionsModel::setDisplayUnit(const QVariant &value)
464{
465 if (!value.isNull())
466 {
467 QSettings settings;
468 nDisplayUnit = value.toInt();
469 settings.setValue("nDisplayUnit", nDisplayUnit);
470 Q_EMIT displayUnitChanged(nDisplayUnit);
471 }
472}
473
474bool OptionsModel::getProxySettings(QNetworkProxy& proxy) const
475{

Callers 4

updateDisplayUnitMethod · 0.45
onMenuSelectionMethod · 0.45
updateDisplayUnitMethod · 0.45
updateDisplayUnitMethod · 0.45

Calls 2

isNullMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected