From: Joel Holdsworth Date: Fri, 28 Dec 2012 10:17:50 +0000 (+0000) Subject: Added commit support to HwCap dialog X-Git-Tag: pulseview-0.1.0~178 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f23cd1e56b09fc487df7a450fc87d905eaeed1f4;p=pulseview.git Added commit support to HwCap dialog --- diff --git a/pv/dialogs/hwcap.cpp b/pv/dialogs/hwcap.cpp index 9e73138d..e3a27647 100644 --- a/pv/dialogs/hwcap.cpp +++ b/pv/dialogs/hwcap.cpp @@ -41,5 +41,11 @@ HwCap::HwCap(QWidget *parent, struct sr_dev_inst *sdi) : _layout.addWidget(&_button_box); } +void HwCap::accept() +{ + QDialog::accept(); + _hw_cap_binding.commit(); +} + } // namespace dialogs } // namespace pv diff --git a/pv/dialogs/hwcap.h b/pv/dialogs/hwcap.h index 0548c8ae..771c8971 100644 --- a/pv/dialogs/hwcap.h +++ b/pv/dialogs/hwcap.h @@ -35,6 +35,9 @@ class HwCap : public QDialog public: HwCap(QWidget *parent, struct sr_dev_inst *sdi); +protected: + void accept(); + private: QVBoxLayout _layout; QDialogButtonBox _button_box;