]> sigrok.org Git - pulseview.git/commitdiff
Added commit support to Binding
authorJoel Holdsworth <redacted>
Fri, 28 Dec 2012 10:17:08 +0000 (10:17 +0000)
committerJoel Holdsworth <redacted>
Fri, 28 Dec 2012 10:19:38 +0000 (10:19 +0000)
pv/prop/binding/binding.cpp
pv/prop/binding/binding.h

index e75b9556d638054b141a346125587e24f04e1b2b..9455ad5905258d00bb4c1c7518610754490ab291 100644 (file)
@@ -56,6 +56,15 @@ QWidget* Binding::get_form(QWidget *parent)
        return _form;
 }
 
+void Binding::commit()
+{
+       BOOST_FOREACH(shared_ptr<Property> p, _properties)
+       {
+               assert(p);
+               p->commit();
+       }
+}
+
 } // binding
 } // prop
 } // pv
index b6f12141c33fed9cc368bc840330a96945b58794..f0b06ae288daed7dad5677aeae30028bf0362cb3 100644 (file)
@@ -41,6 +41,8 @@ public:
 public:
        QWidget* get_form(QWidget *parent);
 
+       void commit();
+
 protected:
        std::vector< boost::shared_ptr<Property> > _properties;