MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / loadSetup

Method loadSetup

core/src/scopymainwindow_api.cpp:511–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511bool ScopyMainWindow_API::loadSetup(QString filename, QString path)
512{
513 QString fullPath = path + "/" + filename;
514 bool setupLoaded = false;
515 if(QFile::exists(fullPath)) {
516 m_w->load(fullPath);
517 setupLoaded = true;
518 } else {
519 qWarning(CAT_SCOPY_API) << "File " << filename << " does not exist";
520 }
521 return setupLoaded;
522}
523
524bool ScopyMainWindow_API::saveSetup(QString filename, QString path)
525{

Callers 1

loadTestFunction · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected