MCPcopy Create free account
hub / github.com/KDE/labplot / loadMatrixWorkbook

Method loadMatrixWorkbook

src/backend/datasources/projects/OriginProjectParser.cpp:1167–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1165}
1166
1167bool OriginProjectParser::loadMatrixWorkbook(Workbook* workbook, bool preview) {
1168 DEBUG(Q_FUNC_INFO)
1169 // load matrix workbook sheets
1170 const auto& originMatrix = m_originFile->matrix(findMatrixByName(workbook->name()));
1171 for (size_t s = 0; s < originMatrix.sheets.size(); ++s) {
1172 auto* matrix = new Matrix(QString::fromStdString(originMatrix.sheets[s].name));
1173 loadMatrix(matrix, preview, s, workbook->name());
1174 workbook->addChildFast(matrix);
1175 }
1176
1177 return true;
1178}
1179
1180bool OriginProjectParser::loadMatrix(Matrix* matrix, bool preview, size_t sheetIndex, const QString& mwbName) {
1181 DEBUG(Q_FUNC_INFO)

Callers

nothing calls this directly

Calls 3

addChildFastMethod · 0.80
nameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected