X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fbinding%2Fdeviceoptions.cpp;h=e112bb12cc70e15a29233094f769dd0a8e00af8a;hp=0023eb2ea748bb608441e1835548d58deff0947a;hb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;hpb=2a21747e9daac2a45cd9a5ceb9a351f9775c5704 diff --git a/pv/prop/binding/deviceoptions.cpp b/pv/prop/binding/deviceoptions.cpp index 0023eb2..e112bb1 100644 --- a/pv/prop/binding/deviceoptions.cpp +++ b/pv/prop/binding/deviceoptions.cpp @@ -49,7 +49,7 @@ namespace prop { namespace binding { DeviceOptions::DeviceOptions(shared_ptr configurable) : - _configurable(configurable) + configurable_(configurable) { assert(configurable); @@ -76,9 +76,9 @@ DeviceOptions::DeviceOptions(shared_ptr configurable) : const QString name = QString::fromStdString(name_str); const Property::Getter get = [&, key]() { - return _configurable->config_get(key); }; + return configurable_->config_get(key); }; const Property::Setter set = [&, key](Glib::VariantBase value) { - _configurable->config_set(key, value); + configurable_->config_set(key, value); config_changed(); }; @@ -130,8 +130,8 @@ DeviceOptions::DeviceOptions(shared_ptr configurable) : void DeviceOptions::bind_bool(const QString &name, Property::Getter getter, Property::Setter setter) { - assert(_configurable); - _properties.push_back(shared_ptr(new Bool( + assert(configurable_); + properties_.push_back(shared_ptr(new Bool( name, getter, setter))); } @@ -142,13 +142,13 @@ void DeviceOptions::bind_enum(const QString &name, Glib::VariantBase gvar; vector< pair > values; - assert(_configurable); + assert(configurable_); Glib::VariantIter iter(gvar_list); while ((iter.next_value(gvar))) values.push_back(make_pair(gvar, printer(gvar))); - _properties.push_back(shared_ptr(new Enum(name, values, + properties_.push_back(shared_ptr(new Enum(name, values, getter, setter))); } @@ -156,9 +156,9 @@ void DeviceOptions::bind_int(const QString &name, QString suffix, optional< std::pair > range, Property::Getter getter, Property::Setter setter) { - assert(_configurable); + assert(configurable_); - _properties.push_back(shared_ptr(new Int(name, suffix, range, + properties_.push_back(shared_ptr(new Int(name, suffix, range, getter, setter))); }