[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:
Émilie Feral
2017-04-10 10:52:22 +02:00
parent cebd5f69ed
commit b9183eb84d
6 changed files with 18 additions and 7 deletions

View File

@@ -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();
}
}