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

Method load_demo_decoder_config

DSView/pv/mainwindow.cpp:2189–2207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2187 }
2188
2189 void MainWindow::load_demo_decoder_config(QString optname)
2190 {
2191 QString file = GetAppDataDir() + "/demo/logic/" + optname + ".demo";
2192 bool bLoadSurccess = false;
2193
2194 QJsonArray deArray = get_decoder_json_from_data_file(file, bLoadSurccess);
2195
2196 if (bLoadSurccess){
2197 StoreSession ss(_session);
2198 ss.load_decoders(_protocol_widget, deArray);
2199 }
2200
2201 QJsonDocument doc = get_config_json_from_data_file(file, bLoadSurccess);
2202 if (bLoadSurccess){
2203 load_channel_view_indexs(doc);
2204 }
2205
2206 _view->update_all_trace_postion();
2207 }
2208
2209 QWidget* MainWindow::GetBodyView()
2210 {

Callers

nothing calls this directly

Calls 3

GetAppDataDirFunction · 0.85
load_decodersMethod · 0.80

Tested by

no test coverage detected