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

Method gen_config_file_path

DSView/pv/mainwindow.cpp:444–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 }
443
444 QString MainWindow::gen_config_file_path(bool isNewFormat)
445 {
446 AppConfig &app = AppConfig::Instance();
447
448 QString file = GetProfileDir();
449 QDir dir(file);
450 if (dir.exists() == false){
451 dir.mkpath(file);
452 }
453
454 QString driver_name = _device_agent->driver_name();
455 QString mode_name = QString::number(_device_agent->get_work_mode());
456 QString lang_name;
457 QString base_path = dir.absolutePath() + "/" + driver_name + mode_name;
458
459 if (!isNewFormat){
460 lang_name = QString::number(app.frameOptions.language);
461 }
462
463 return base_path + ".ses" + lang_name + ".dsc";
464 }
465
466 bool MainWindow::able_to_close()
467 {

Callers

nothing calls this directly

Calls 3

GetProfileDirFunction · 0.85
driver_nameMethod · 0.80
get_work_modeMethod · 0.80

Tested by

no test coverage detected