X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.cpp;h=eaa036c2e237c4a38b20460709e3ef0c2664e447;hb=0715fb8c638b53ac25590841fcbf3a1da3546b68;hp=ac7c2b78f3c3eb0245e77e3d6dc248e47264e801;hpb=b786fcfd36fed2282a6602f26d74c2926957aff6;p=pulseview.git diff --git a/pv/popups/deviceoptions.cpp b/pv/popups/deviceoptions.cpp index ac7c2b78..eaa036c2 100644 --- a/pv/popups/deviceoptions.cpp +++ b/pv/popups/deviceoptions.cpp @@ -20,29 +20,32 @@ #include "deviceoptions.h" -#include - #include #include #include -using namespace boost; -using namespace std; +using std::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