Decoder::Decoder(QWidget *parent, const srd_decoder *decoder,
const vector< shared_ptr<view::Signal> > &sigs, GHashTable *options) :
QDialog(parent),
- _decoder(decoder),
_sigs(sigs),
- _options(options),
_binding(decoder, options),
_layout(this),
_form(this),
QWidget *parent, const char *name);
private:
- const srd_decoder *const _decoder;
const std::vector< boost::shared_ptr<view::Signal> > &_sigs;
std::map<const srd_probe*, QComboBox*> _probe_selector_map;
- GHashTable *const _options;
pv::prop::binding::DecoderOptions _binding;
QVBoxLayout _layout;
unsigned int precision)
{
const double multiplier = pow(10.0,
- - prefix * 3 - FirstSIPrefixPower);
+ (int)- prefix * 3 - FirstSIPrefixPower);
QString s;
QTextStream ts(&s);
const double min_period = _view.scale() * min_width;
const int order = (int)floorf(log10f(min_period));
- const double order_decimal = pow(10, order);
+ const double order_decimal = pow(10.0, order);
unsigned int unit = 0;