src/documentmanager.cpp

changeset 374
75efc3ba5a56
parent 338
719b909a7d2b
child 380
16f6717a218b
equal deleted inserted replaced
373:e34d6a30b96d 374:75efc3ba5a56
362 { 362 {
363 std::set<QString> result; 363 std::set<QString> result;
364 for (const QString& line : model->toPlainText().split("\n")) { 364 for (const QString& line : model->toPlainText().split("\n")) {
365 const opt<ParsedLine> parsed = parse(line); 365 const opt<ParsedLine> parsed = parse(line);
366 if (parsed.has_value() and std::holds_alternative<LineType1>(*parsed)) { 366 if (parsed.has_value() and std::holds_alternative<LineType1>(*parsed)) {
367 result.insert(std::get<LineType1>(*parsed).value.name); 367 result.insert(std::get<LineType1>(*parsed).value.element.name);
368 } 368 }
369 } 369 }
370 return result; 370 return result;
371 } 371 }
372 372

mercurial