Replaced using namespace with using class directives
[pulseview.git] / pv / popups / deviceoptions.cpp
index c864865f4c854cea3ae96f8cec14286720c1cd35..30d5f579422a37517aa689cae30dc1a88fe98262 100644 (file)
@@ -27,9 +27,6 @@
 
 #include <pv/prop/property.h>
 
-using namespace boost;
-using namespace std;
-
 namespace pv {
 namespace popups {
 
@@ -41,12 +38,7 @@ DeviceOptions::DeviceOptions(sr_dev_inst *sdi, QWidget *parent) :
 {
        setLayout(&_layout);
 
-       _layout.addWidget(_binding.get_property_form(this));
-}
-
-void DeviceOptions::closeEvent(QCloseEvent*)
-{
-       _binding.commit();
+       _layout.addWidget(_binding.get_property_form(this, true));
 }
 
 } // namespace popups