]> sigrok.org Git - pulseview.git/blobdiff - pv/dialogs/hwcap.cpp
samplingbar: Replace sr_info_get(SR_DI_SAMPLERATES) with sr_config_list(SR_CONF_SAMPL...
[pulseview.git] / pv / dialogs / hwcap.cpp
index 9e73138dbead9d105ec1a78ef8dcd3963ded0ac4..03255f9da4cec11a03ad82788fc4d4667493e3c8 100644 (file)
@@ -30,6 +30,8 @@ HwCap::HwCap(QWidget *parent, struct sr_dev_inst *sdi) :
                Qt::Horizontal, this),
        _hw_cap_binding(sdi)
 {
+       setWindowTitle(tr("Configure Device"));
+
        connect(&_button_box, SIGNAL(accepted()), this, SLOT(accept()));
        connect(&_button_box, SIGNAL(rejected()), this, SLOT(reject()));
 
@@ -41,5 +43,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