X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.cpp;h=7e1be20d52d5ca4dd7b14835387f960590c75b82;hp=ac7c2b78f3c3eb0245e77e3d6dc248e47264e801;hb=19adbc2c342b190161ec1223377a3619974b91f7;hpb=b786fcfd36fed2282a6602f26d74c2926957aff6 diff --git a/pv/popups/deviceoptions.cpp b/pv/popups/deviceoptions.cpp index ac7c2b78..7e1be20d 100644 --- a/pv/popups/deviceoptions.cpp +++ b/pv/popups/deviceoptions.cpp @@ -27,22 +27,26 @@ #include -using namespace boost; -using namespace std; +using boost::shared_ptr; namespace pv { namespace popups { -DeviceOptions::DeviceOptions(sr_dev_inst *sdi, QWidget *parent) : +DeviceOptions::DeviceOptions(shared_ptr dev_inst, QWidget *parent) : Popup(parent), - _sdi(sdi), + _dev_inst(dev_inst), _layout(this), - _binding(sdi) + _binding(dev_inst) { setLayout(&_layout); _layout.addWidget(_binding.get_property_form(this, true)); } +pv::prop::binding::DeviceOptions& DeviceOptions::binding() +{ + return _binding; +} + } // namespace popups } // namespace pv