MCPcopy Create free account
hub / github.com/LUX-Core/lux / stepEnabled

Function stepEnabled

src/qt/tokenamountfield.cpp:148–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 StepEnabled stepEnabled() const
149 {
150 if (isReadOnly())
151 return StepNone;
152 if (text().isEmpty())
153 return StepUpEnabled;
154
155 StepEnabled rv = 0;
156 bool valid = false;
157 int256_t val = value(&valid);
158 if(valid)
159 {
160 if(val > minAmount)
161 rv |= StepDownEnabled;
162 if(val < totalSupply)
163 rv |= StepUpEnabled;
164 }
165 return rv;
166 }
167
168Q_SIGNALS:
169 void valueChanged();

Callers

nothing calls this directly

Calls 3

textFunction · 0.85
valueFunction · 0.70
isEmptyMethod · 0.45

Tested by

no test coverage detected