| 433 | } |
| 434 | |
| 435 | void DeviceOptions::enable_max_probes() { |
| 436 | int cur_ch_num = 0; |
| 437 | for (auto box : _probes_checkBox_list) { |
| 438 | if (box->isChecked()) |
| 439 | cur_ch_num++; |
| 440 | } |
| 441 | |
| 442 | int vld_ch_num; |
| 443 | |
| 444 | if (_device_agent->get_config_int16(SR_CONF_VLD_CH_NUM, vld_ch_num) == false) |
| 445 | return; |
| 446 | |
| 447 | while(cur_ch_num < vld_ch_num && cur_ch_num < (int)_probes_checkBox_list.size()) { |
| 448 | auto box = _probes_checkBox_list[cur_ch_num]; |
| 449 | if (box->isChecked() == false) { |
| 450 | box->setChecked(true); |
| 451 | cur_ch_num++; |
| 452 | } |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | void DeviceOptions::enable_all_probes() |
| 457 | { |
nothing calls this directly
no test coverage detected