X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.cpp;h=fe7955159990c81f6b6646786636dd965f0a6f8b;hb=e71eb81c946c3524e01eaef9781ccbf170143d0c;hp=eaa036c2e237c4a38b20460709e3ef0c2664e447;hpb=f9abf97e78bc4825d80926b0ebc6cbaef40768b1;p=pulseview.git diff --git a/pv/popups/deviceoptions.cpp b/pv/popups/deviceoptions.cpp index eaa036c2..fe795515 100644 --- a/pv/popups/deviceoptions.cpp +++ b/pv/popups/deviceoptions.cpp @@ -18,33 +18,36 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "deviceoptions.h" +#include "deviceoptions.hpp" #include #include -#include +#include + +#include using std::shared_ptr; +using sigrok::Device; + namespace pv { namespace popups { -DeviceOptions::DeviceOptions(shared_ptr dev_inst, - QWidget *parent) : +DeviceOptions::DeviceOptions(shared_ptr device, QWidget *parent) : Popup(parent), - _dev_inst(dev_inst), - _layout(this), - _binding(dev_inst) + device_(device), + layout_(this), + binding_(device) { - setLayout(&_layout); + setLayout(&layout_); - _layout.addWidget(_binding.get_property_form(this, true)); + layout_.addWidget(binding_.get_property_form(this, true)); } -pv::prop::binding::DeviceOptions& DeviceOptions::binding() +pv::binding::Device& DeviceOptions::binding() { - return _binding; + return binding_; } } // namespace popups