MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / channel_changed

Method channel_changed

DSView/pv/dock/dsotriggerdock.cpp:331–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void DsoTriggerDock::channel_changed(int ch)
332{
333 (void)ch;
334 int ret;
335
336 ret = _session->get_device()->set_config_byte(
337 SR_CONF_TRIGGER_CHANNEL,
338 int(_channel_comboBox->currentData().toInt()));
339 if (!ret) {
340 QString strMsg(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_CHANGE_CHANNEL_FAIL),
341 "Change trigger channel failed!"));
342 MsgBox::Show(strMsg);
343 }
344}
345
346void DsoTriggerDock::type_changed()
347{

Callers

nothing calls this directly

Calls 3

ShowFunction · 0.85
set_config_byteMethod · 0.80
get_deviceMethod · 0.80

Tested by

no test coverage detected