mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-21 06:13:41 +00:00
Update math on static traces
This commit is contained in:
parent
17454ebba2
commit
b420dc3019
1 changed files with 5 additions and 0 deletions
|
|
@ -341,6 +341,7 @@ const QString &Trace::getMathFormula() const
|
|||
void Trace::setMathFormula(const QString &newMathFormula)
|
||||
{
|
||||
mathFormula = newMathFormula;
|
||||
scheduleMathCalculation(0, data.size());
|
||||
}
|
||||
|
||||
bool Trace::mathFormularValid() const
|
||||
|
|
@ -433,6 +434,8 @@ void Trace::mathSourceTraceDeleted(Trace *t)
|
|||
{
|
||||
if (mathSourceTraces.count(t)) {
|
||||
removeMathSource(t);
|
||||
updateMathTracePoints();
|
||||
scheduleMathCalculation(0, data.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -592,6 +595,8 @@ bool Trace::addMathSource(Trace *t, QString variableName)
|
|||
|
||||
scheduleMathCalculation(calcIndex(startX), calcIndex(stopX)+1);
|
||||
});
|
||||
updateMathTracePoints();
|
||||
scheduleMathCalculation(0, data.size());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue