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

Method genSessionData

DSView/pv/mainwindow.cpp:1184–1196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182 }
1183
1184 bool MainWindow::genSessionData(std::string &str)
1185 {
1186 QJsonObject sessionVar;
1187 if (!gen_config_json(sessionVar))
1188 {
1189 return false;
1190 }
1191
1192 QJsonDocument sessionDoc(sessionVar);
1193 QString data = QString::fromUtf8(sessionDoc.toJson());
1194 str.append(data.toLocal8Bit().data());
1195 return true;
1196 }
1197
1198 void MainWindow::restore_dock()
1199 {

Callers 1

save_startMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected