void QDoubleValidator::setRange(double minimum, double maximum, int decimals) { if (b != minimum) { b = minimum; emit bottomChanged(b); } if (t != maximum) { t = maximum; emit topChanged(t); } if (dec != decimals) { dec = decimals; emit decimalsChanged(dec); } }
void QDoubleValidator::setRange(double minimum, double maximum, int decimals) { bool rangeChanged = false; if (b != minimum) { b = minimum; rangeChanged = true; emit bottomChanged(b); } if (t != maximum) { t = maximum; rangeChanged = true; emit topChanged(t); } if (dec != decimals) { dec = decimals; rangeChanged = true; emit decimalsChanged(dec); } if (rangeChanged) emit changed(); }
void medDoubleParameterPresenter::setDecimals(int precision) { d->decimals = precision; emit decimalsChanged(d->decimals); }