| 497 | } |
| 498 | |
| 499 | void DeviceOptions::mode_check_timeout() |
| 500 | { |
| 501 | if (_isBuilding) |
| 502 | return; |
| 503 | |
| 504 | if (_device_agent->is_hardware()) |
| 505 | { |
| 506 | bool test; |
| 507 | int mode; |
| 508 | |
| 509 | if (_device_agent->get_config_int16(SR_CONF_OPERATION_MODE, mode)) { |
| 510 | if (mode != _opt_mode) { |
| 511 | _opt_mode = mode; |
| 512 | build_dynamic_panel(); |
| 513 | try_resize_scroll(); |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | if (_device_agent->get_config_bool(SR_CONF_TEST, test)) { |
| 518 | if (test) { |
| 519 | for (auto box : _probes_checkBox_list) { |
| 520 | box->setCheckState(Qt::Checked); |
| 521 | box->setDisabled(true); |
| 522 | } |
| 523 | } |
| 524 | } |
| 525 | } |
| 526 | else if (_device_agent->is_demo()) |
| 527 | { |
| 528 | QString opt_mode = _device_agent->get_demo_operation_mode(); |
| 529 | if (opt_mode != _demo_operation_mode){ |
| 530 | _demo_operation_mode = opt_mode; |
| 531 | build_dynamic_panel(); |
| 532 | try_resize_scroll(); |
| 533 | } |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | void DeviceOptions::channel_check() |
| 538 | { |
nothing calls this directly
no test coverage detected