From 3a69ef6b7e1a0c4effdcc3e66c00fc9dbc973613 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Fri, 28 Dec 2012 10:17:08 +0000 Subject: [PATCH] Added commit support to Binding --- pv/prop/binding/binding.cpp | 9 +++++++++ pv/prop/binding/binding.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/pv/prop/binding/binding.cpp b/pv/prop/binding/binding.cpp index e75b955..9455ad5 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 b6f1214..f0b06ae 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; -- 2.30.2