]> sigrok.org Git - pulseview.git/blobdiff - pv/popups/deviceoptions.h
Use a generic approach when adding the "close on enter" hook for popups
[pulseview.git] / pv / popups / deviceoptions.h
index fd9d03488651162f81a37d92d2802f62c3cd80c0..deedf587854c5af7570643c1892af4d93a65bf80 100644 (file)
@@ -35,10 +35,13 @@ class DeviceOptions : public pv::widgets::Popup
        Q_OBJECT
 
 public:
-       DeviceOptions(sr_dev_inst *sdi, QWidget *parent);
+       DeviceOptions(std::shared_ptr<device::DevInst> dev_inst,
+               QWidget *parent);
+
+       pv::prop::binding::DeviceOptions& binding();
 
 private:
-       sr_dev_inst *const _sdi;
+       std::shared_ptr<device::DevInst> _dev_inst;
 
        QVBoxLayout _layout;