Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BTCGPU/BTCGPU
/ setDisplayUnit
Function
setDisplayUnit
src/qt/bitcoinamountfield.cpp:76–87 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
74
}
75
76
void setDisplayUnit(int unit)
77
{
78
bool valid = false;
79
CAmount val = value(&valid);
80
81
currentUnit = unit;
82
83
if(valid)
84
setValue(val);
85
else
86
clear();
87
}
88
89
void setSingleStep(const CAmount& step)
90
{
Callers
1
setData
Method · 0.85
Calls
2
value
Function · 0.85
setValue
Function · 0.85
Tested by
no test coverage detected