| 233 | } |
| 234 | |
| 235 | void DsoTriggerDock::hold_changed(int hold) |
| 236 | { |
| 237 | (void)hold; |
| 238 | int ret; |
| 239 | uint64_t holdoff; |
| 240 | |
| 241 | if (_holdoff_comboBox->currentData().toDouble() == 1000000000){ |
| 242 | _holdoff_slider->setRange(0, 10); |
| 243 | _holdoff_spinBox->setRange(0, 10); |
| 244 | } |
| 245 | else{ |
| 246 | _holdoff_slider->setRange(0, 999); |
| 247 | _holdoff_spinBox->setRange(0, 999); |
| 248 | } |
| 249 | |
| 250 | holdoff = _holdoff_slider->value() * _holdoff_comboBox->currentData().toDouble() / 10; |
| 251 | ret = _session->get_device()->set_config_uint64( |
| 252 | SR_CONF_TRIGGER_HOLDOFF,holdoff); |
| 253 | |
| 254 | if (!ret) { |
| 255 | QString strMsg(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_CHANGE_TRI_HOLDOFF_TIME_FAIL), |
| 256 | "Change trigger hold off time failed!")); |
| 257 | MsgBox::Show(strMsg); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | void DsoTriggerDock::margin_changed(int margin) |
| 262 | { |
nothing calls this directly
no test coverage detected