| 2626 | } |
| 2627 | |
| 2628 | void 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' |
no test coverage detected