X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.cpp;h=13055fc0e8cdee6c27e9d99b233064876f52e170;hp=ac7c2b78f3c3eb0245e77e3d6dc248e47264e801;hb=8bd26d8b9c831b509ee3241ea4dac6f50c023622;hpb=b786fcfd36fed2282a6602f26d74c2926957aff6 diff --git a/pv/popups/deviceoptions.cpp b/pv/popups/deviceoptions.cpp index ac7c2b78..13055fc0 100644 --- a/pv/popups/deviceoptions.cpp +++ b/pv/popups/deviceoptions.cpp @@ -27,22 +27,27 @@ #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