]> sigrok.org Git - pulseview.git/blobdiff - pv/popups/deviceoptions.cpp
Hide the configure device button when the popup would be empty
[pulseview.git] / pv / popups / deviceoptions.cpp
index c864865f4c854cea3ae96f8cec14286720c1cd35..6f9d7d9f558ebe3e56a2aec7c48db5c2016f1a7d 100644 (file)
@@ -27,9 +27,6 @@
 
 #include <pv/prop/property.h>
 
-using namespace boost;
-using namespace std;
-
 namespace pv {
 namespace popups {
 
@@ -41,12 +38,12 @@ DeviceOptions::DeviceOptions(sr_dev_inst *sdi, QWidget *parent) :
 {
        setLayout(&_layout);
 
-       _layout.addWidget(_binding.get_property_form(this));
+       _layout.addWidget(_binding.get_property_form(this, true));
 }
 
-void DeviceOptions::closeEvent(QCloseEvent*)
+pv::prop::binding::DeviceOptions& DeviceOptions::binding()
 {
-       _binding.commit();
+       return _binding;
 }
 
 } // namespace popups