X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fpopups%2Fprobes.cpp;h=13380c2dfb9d6999bcb23e4fb040aed39a0cd127;hb=945745012eb57cefa1ef457daf48cfffa99f9ec2;hp=3fffec310fa79378c233a333aa27f52349accd66;hpb=488f068c7ecdc101820a3c48be61fb45a7e683dc;p=pulseview.git diff --git a/pv/popups/probes.cpp b/pv/popups/probes.cpp index 3fffec3..13380c2 100644 --- a/pv/popups/probes.cpp +++ b/pv/popups/probes.cpp @@ -20,11 +20,16 @@ #include +#include + +#include #include #include +#include #include "probes.h" +#include #include #include #include @@ -44,17 +49,17 @@ namespace popups { Probes::Probes(SigSession &session, QWidget *parent) : Popup(parent), _session(session), - _layout(this), _updating_probes(false), - _probes_bar(this), - _enable_all_probes(this), - _disable_all_probes(this), + _enable_all_probes(tr("Enable All"), this), + _disable_all_probes(tr("Disable All"), this), _check_box_mapper(this) { // Create the layout setLayout(&_layout); - sr_dev_inst *const sdi = _session.get_device(); + shared_ptr dev_inst = _session.get_device(); + assert(dev_inst); + const sr_dev_inst *const sdi = dev_inst->dev_inst(); assert(sdi); // Collect a set of signals @@ -111,13 +116,14 @@ Probes::Probes(SigSession &session, QWidget *parent) : connect(&_disable_all_probes, SIGNAL(clicked()), this, SLOT(disable_all_probes())); - _enable_all_probes.setText(tr("Enable All")); - _probes_bar.addWidget(&_enable_all_probes); + _enable_all_probes.setFlat(true); + _disable_all_probes.setFlat(true); - _disable_all_probes.setText(tr("Disable All")); - _probes_bar.addWidget(&_disable_all_probes); + _buttons_bar.addWidget(&_enable_all_probes); + _buttons_bar.addWidget(&_disable_all_probes); + _buttons_bar.addStretch(1); - _layout.addRow(&_probes_bar); + _layout.addRow(&_buttons_bar); // Connect the check-box signal mapper connect(&_check_box_mapper, SIGNAL(mapped(QWidget*)),