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

Method formulaVariableColumnAdded

src/backend/core/column/ColumnPrivate.cpp:2628–2644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2626}
2627
2628void ColumnPrivate::formulaVariableColumnAdded(const AbstractAspect* aspect) {
2629 PERFTRACE(QLatin1String(Q_FUNC_INFO));
2630 auto* column = dynamic_cast<Column*>(const_cast<AbstractAspect*>(aspect));
2631 if (!column)
2632 return;
2633
2634 const auto& path = aspect->path();
2635 for (int i = 0; i < formulaData().count(); i++) {
2636 if (formulaData().at(i).columnName() == path) {
2637 // m_formulaData[index].setColumn(const_cast<Column*>(column));
2638 // DEBUG(Q_FUNC_INFO << ", calling updateFormula()")
2639 setFormulVariableColumn(i, column);
2640 updateFormula();
2641 return;
2642 }
2643 }
2644}
2645
2646/**
2647 * \brief Return the formula associated with row 'row'

Callers 1

handleAspectUpdatedMethod · 0.80

Calls 3

columnNameMethod · 0.80
pathMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected