MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / hold_changed

Method hold_changed

DSView/pv/dock/dsotriggerdock.cpp:235–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void 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
261void DsoTriggerDock::margin_changed(int margin)
262{

Callers

nothing calls this directly

Calls 5

ShowFunction · 0.85
setRangeMethod · 0.80
set_config_uint64Method · 0.80
get_deviceMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected