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

Method findNoteByName

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

Source from the content-addressed store, hash-verified

190 return 0;
191}
192unsigned int OriginProjectParser::findNoteByName(const QString& name) {
193 for (unsigned int i = 0; i < m_originFile->noteCount(); i++) {
194 const auto& originNote = m_originFile->note(i);
195 if (originNote.name == name.toStdString()) {
196 m_noteNameList << name;
197 m_noteNameList.removeDuplicates();
198 return i;
199 }
200 }
201 return 0;
202}
203
204// get Origin::Spreadsheet from container name (may be a spreadsheet or workbook)
205Origin::SpreadSheet OriginProjectParser::getSpreadsheetByName(QString& containerName) {

Callers

nothing calls this directly

Calls 2

noteCountMethod · 0.80
toStdStringMethod · 0.80

Tested by

no test coverage detected