mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 22:30:30 +01:00
[apps/graph][apps/sequence] In function store model, specify the
implementation of removeAll (always let an empty function in cartesian functions) Change-Id: I5e91a0ea427ba823eee4f86cdd8b7cd5426df2c6
This commit is contained in:
@@ -100,4 +100,12 @@ const KDColor CartesianFunctionStore::firstAvailableColor() {
|
||||
return k_defaultColors[0];
|
||||
}
|
||||
|
||||
void CartesianFunctionStore::removeAll() {
|
||||
for (int i = 0; i < m_numberOfFunctions; i++) {
|
||||
m_functions[i] = CartesianFunction("", KDColorBlack);
|
||||
}
|
||||
m_numberOfFunctions = 0;
|
||||
addEmptyFunction();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user