void CLSValueEditor::setPrecision(int newPrecision) { if (precision_ != newPrecision && validPrecision(newPrecision)) { precision_ = newPrecision; updateValueLabel(); emit precisionChanged(precision_); } }
void Asset::update(const graphene::chain::asset_object& asset) { if (asset.id.instance() != id()) setProperty("id", QVariant::fromValue(asset.id.instance())); if (asset.symbol != m_symbol.toStdString()) { m_symbol = QString::fromStdString(asset.symbol); Q_EMIT symbolChanged(); } if (asset.precision != m_precision) { m_precision = asset.precision; Q_EMIT precisionChanged(); } if (asset.options.core_exchange_rate != coreExchangeRate) coreExchangeRate = asset.options.core_exchange_rate; }
void NoiseReductionWidget::precisionChanged(int value) { precisionChanged ( (double)value / ( FLOAT_SLIDER_RES / GREYC_GAUSSPREC_RANGE ) ); }
void MyFracWindow::setQuality(int quality) { _threshold = (12.8 - quality) / (2.48 * quality + 3.2); emit precisionChanged(_maxIter, _threshold); }
void MyFracWindow::setMaxIterations(int iter) { _maxIter = 0.5 * iter; emit precisionChanged(_maxIter, _threshold); }