From: Joel Holdsworth Date: Fri, 28 Dec 2012 10:17:08 +0000 (+0000) Subject: Added commit support to Binding X-Git-Tag: pulseview-0.1.0~179 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3a69ef6b7e1a0c4effdcc3e66c00fc9dbc973613;p=pulseview.git Added commit support to Binding --- diff --git a/pv/prop/binding/binding.cpp b/pv/prop/binding/binding.cpp index e75b9556..9455ad59 100644 --- a/pv/prop/binding/binding.cpp +++ b/pv/prop/binding/binding.cpp @@ -56,6 +56,15 @@ QWidget* Binding::get_form(QWidget *parent) return _form; } +void Binding::commit() +{ + BOOST_FOREACH(shared_ptr p, _properties) + { + assert(p); + p->commit(); + } +} + } // binding } // prop } // pv diff --git a/pv/prop/binding/binding.h b/pv/prop/binding/binding.h index b6f12141..f0b06ae2 100644 --- a/pv/prop/binding/binding.h +++ b/pv/prop/binding/binding.h @@ -41,6 +41,8 @@ public: public: QWidget* get_form(QWidget *parent); + void commit(); + protected: std::vector< boost::shared_ptr > _properties;