| 555 | } |
| 556 | |
| 557 | void DeviceOptions::analog_channel_check() |
| 558 | { |
| 559 | QCheckBox* sc=dynamic_cast<QCheckBox*>(sender()); |
| 560 | if(sc != NULL) |
| 561 | { |
| 562 | for (const GSList *l = _device_agent->get_channels(); l; l = l->next) { |
| 563 | sr_channel *const probe = (sr_channel*)l->data; |
| 564 | |
| 565 | if (sc->property("index").toInt() == probe->index){ |
| 566 | _device_agent->set_config_bool(SR_CONF_PROBE_MAP_DEFAULT, sc->isChecked(), probe); |
| 567 | } |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | _lst_probe_enabled_status.clear(); |
| 572 | for (auto ck : _probes_checkBox_list){ |
| 573 | _lst_probe_enabled_status.push_back(ck->isChecked()); |
| 574 | } |
| 575 | |
| 576 | build_dynamic_panel(); |
| 577 | try_resize_scroll(); |
| 578 | } |
| 579 | |
| 580 | void DeviceOptions::on_analog_channel_enable() |
| 581 | { |
nothing calls this directly
no test coverage detected